001package hapi.services.rudder;
002
003import static io.grpc.MethodDescriptor.generateFullMethodName;
004import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
005import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
006import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
007import static io.grpc.stub.ClientCalls.asyncUnaryCall;
008import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
009import static io.grpc.stub.ClientCalls.blockingUnaryCall;
010import static io.grpc.stub.ClientCalls.futureUnaryCall;
011import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
012import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
013import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
014import static io.grpc.stub.ServerCalls.asyncUnaryCall;
015import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
016import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
017
018/**
019 */
020@javax.annotation.Generated(
021    value = "by gRPC proto compiler (version 1.10.0)",
022    comments = "Source: hapi/rudder/rudder.proto")
023public final class ReleaseModuleServiceGrpc {
024
025  private ReleaseModuleServiceGrpc() {}
026
027  public static final String SERVICE_NAME = "hapi.services.rudder.ReleaseModuleService";
028
029  // Static method descriptors that strictly reflect the proto.
030  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
031  @java.lang.Deprecated // Use {@link #getVersionMethod()} instead. 
032  public static final io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.VersionReleaseRequest,
033      hapi.services.rudder.Rudder.VersionReleaseResponse> METHOD_VERSION = getVersionMethodHelper();
034
035  private static volatile io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.VersionReleaseRequest,
036      hapi.services.rudder.Rudder.VersionReleaseResponse> getVersionMethod;
037
038  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
039  public static io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.VersionReleaseRequest,
040      hapi.services.rudder.Rudder.VersionReleaseResponse> getVersionMethod() {
041    return getVersionMethodHelper();
042  }
043
044  private static io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.VersionReleaseRequest,
045      hapi.services.rudder.Rudder.VersionReleaseResponse> getVersionMethodHelper() {
046    io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.VersionReleaseRequest, hapi.services.rudder.Rudder.VersionReleaseResponse> getVersionMethod;
047    if ((getVersionMethod = ReleaseModuleServiceGrpc.getVersionMethod) == null) {
048      synchronized (ReleaseModuleServiceGrpc.class) {
049        if ((getVersionMethod = ReleaseModuleServiceGrpc.getVersionMethod) == null) {
050          ReleaseModuleServiceGrpc.getVersionMethod = getVersionMethod = 
051              io.grpc.MethodDescriptor.<hapi.services.rudder.Rudder.VersionReleaseRequest, hapi.services.rudder.Rudder.VersionReleaseResponse>newBuilder()
052              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
053              .setFullMethodName(generateFullMethodName(
054                  "hapi.services.rudder.ReleaseModuleService", "Version"))
055              .setSampledToLocalTracing(true)
056              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
057                  hapi.services.rudder.Rudder.VersionReleaseRequest.getDefaultInstance()))
058              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
059                  hapi.services.rudder.Rudder.VersionReleaseResponse.getDefaultInstance()))
060                  .setSchemaDescriptor(new ReleaseModuleServiceMethodDescriptorSupplier("Version"))
061                  .build();
062          }
063        }
064     }
065     return getVersionMethod;
066  }
067  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
068  @java.lang.Deprecated // Use {@link #getInstallReleaseMethod()} instead. 
069  public static final io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.InstallReleaseRequest,
070      hapi.services.rudder.Rudder.InstallReleaseResponse> METHOD_INSTALL_RELEASE = getInstallReleaseMethodHelper();
071
072  private static volatile io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.InstallReleaseRequest,
073      hapi.services.rudder.Rudder.InstallReleaseResponse> getInstallReleaseMethod;
074
075  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
076  public static io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.InstallReleaseRequest,
077      hapi.services.rudder.Rudder.InstallReleaseResponse> getInstallReleaseMethod() {
078    return getInstallReleaseMethodHelper();
079  }
080
081  private static io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.InstallReleaseRequest,
082      hapi.services.rudder.Rudder.InstallReleaseResponse> getInstallReleaseMethodHelper() {
083    io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.InstallReleaseRequest, hapi.services.rudder.Rudder.InstallReleaseResponse> getInstallReleaseMethod;
084    if ((getInstallReleaseMethod = ReleaseModuleServiceGrpc.getInstallReleaseMethod) == null) {
085      synchronized (ReleaseModuleServiceGrpc.class) {
086        if ((getInstallReleaseMethod = ReleaseModuleServiceGrpc.getInstallReleaseMethod) == null) {
087          ReleaseModuleServiceGrpc.getInstallReleaseMethod = getInstallReleaseMethod = 
088              io.grpc.MethodDescriptor.<hapi.services.rudder.Rudder.InstallReleaseRequest, hapi.services.rudder.Rudder.InstallReleaseResponse>newBuilder()
089              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
090              .setFullMethodName(generateFullMethodName(
091                  "hapi.services.rudder.ReleaseModuleService", "InstallRelease"))
092              .setSampledToLocalTracing(true)
093              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
094                  hapi.services.rudder.Rudder.InstallReleaseRequest.getDefaultInstance()))
095              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
096                  hapi.services.rudder.Rudder.InstallReleaseResponse.getDefaultInstance()))
097                  .setSchemaDescriptor(new ReleaseModuleServiceMethodDescriptorSupplier("InstallRelease"))
098                  .build();
099          }
100        }
101     }
102     return getInstallReleaseMethod;
103  }
104  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
105  @java.lang.Deprecated // Use {@link #getDeleteReleaseMethod()} instead. 
106  public static final io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.DeleteReleaseRequest,
107      hapi.services.rudder.Rudder.DeleteReleaseResponse> METHOD_DELETE_RELEASE = getDeleteReleaseMethodHelper();
108
109  private static volatile io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.DeleteReleaseRequest,
110      hapi.services.rudder.Rudder.DeleteReleaseResponse> getDeleteReleaseMethod;
111
112  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
113  public static io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.DeleteReleaseRequest,
114      hapi.services.rudder.Rudder.DeleteReleaseResponse> getDeleteReleaseMethod() {
115    return getDeleteReleaseMethodHelper();
116  }
117
118  private static io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.DeleteReleaseRequest,
119      hapi.services.rudder.Rudder.DeleteReleaseResponse> getDeleteReleaseMethodHelper() {
120    io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.DeleteReleaseRequest, hapi.services.rudder.Rudder.DeleteReleaseResponse> getDeleteReleaseMethod;
121    if ((getDeleteReleaseMethod = ReleaseModuleServiceGrpc.getDeleteReleaseMethod) == null) {
122      synchronized (ReleaseModuleServiceGrpc.class) {
123        if ((getDeleteReleaseMethod = ReleaseModuleServiceGrpc.getDeleteReleaseMethod) == null) {
124          ReleaseModuleServiceGrpc.getDeleteReleaseMethod = getDeleteReleaseMethod = 
125              io.grpc.MethodDescriptor.<hapi.services.rudder.Rudder.DeleteReleaseRequest, hapi.services.rudder.Rudder.DeleteReleaseResponse>newBuilder()
126              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
127              .setFullMethodName(generateFullMethodName(
128                  "hapi.services.rudder.ReleaseModuleService", "DeleteRelease"))
129              .setSampledToLocalTracing(true)
130              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
131                  hapi.services.rudder.Rudder.DeleteReleaseRequest.getDefaultInstance()))
132              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
133                  hapi.services.rudder.Rudder.DeleteReleaseResponse.getDefaultInstance()))
134                  .setSchemaDescriptor(new ReleaseModuleServiceMethodDescriptorSupplier("DeleteRelease"))
135                  .build();
136          }
137        }
138     }
139     return getDeleteReleaseMethod;
140  }
141  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
142  @java.lang.Deprecated // Use {@link #getRollbackReleaseMethod()} instead. 
143  public static final io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.RollbackReleaseRequest,
144      hapi.services.rudder.Rudder.RollbackReleaseResponse> METHOD_ROLLBACK_RELEASE = getRollbackReleaseMethodHelper();
145
146  private static volatile io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.RollbackReleaseRequest,
147      hapi.services.rudder.Rudder.RollbackReleaseResponse> getRollbackReleaseMethod;
148
149  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
150  public static io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.RollbackReleaseRequest,
151      hapi.services.rudder.Rudder.RollbackReleaseResponse> getRollbackReleaseMethod() {
152    return getRollbackReleaseMethodHelper();
153  }
154
155  private static io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.RollbackReleaseRequest,
156      hapi.services.rudder.Rudder.RollbackReleaseResponse> getRollbackReleaseMethodHelper() {
157    io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.RollbackReleaseRequest, hapi.services.rudder.Rudder.RollbackReleaseResponse> getRollbackReleaseMethod;
158    if ((getRollbackReleaseMethod = ReleaseModuleServiceGrpc.getRollbackReleaseMethod) == null) {
159      synchronized (ReleaseModuleServiceGrpc.class) {
160        if ((getRollbackReleaseMethod = ReleaseModuleServiceGrpc.getRollbackReleaseMethod) == null) {
161          ReleaseModuleServiceGrpc.getRollbackReleaseMethod = getRollbackReleaseMethod = 
162              io.grpc.MethodDescriptor.<hapi.services.rudder.Rudder.RollbackReleaseRequest, hapi.services.rudder.Rudder.RollbackReleaseResponse>newBuilder()
163              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
164              .setFullMethodName(generateFullMethodName(
165                  "hapi.services.rudder.ReleaseModuleService", "RollbackRelease"))
166              .setSampledToLocalTracing(true)
167              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
168                  hapi.services.rudder.Rudder.RollbackReleaseRequest.getDefaultInstance()))
169              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
170                  hapi.services.rudder.Rudder.RollbackReleaseResponse.getDefaultInstance()))
171                  .setSchemaDescriptor(new ReleaseModuleServiceMethodDescriptorSupplier("RollbackRelease"))
172                  .build();
173          }
174        }
175     }
176     return getRollbackReleaseMethod;
177  }
178  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
179  @java.lang.Deprecated // Use {@link #getUpgradeReleaseMethod()} instead. 
180  public static final io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.UpgradeReleaseRequest,
181      hapi.services.rudder.Rudder.UpgradeReleaseResponse> METHOD_UPGRADE_RELEASE = getUpgradeReleaseMethodHelper();
182
183  private static volatile io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.UpgradeReleaseRequest,
184      hapi.services.rudder.Rudder.UpgradeReleaseResponse> getUpgradeReleaseMethod;
185
186  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
187  public static io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.UpgradeReleaseRequest,
188      hapi.services.rudder.Rudder.UpgradeReleaseResponse> getUpgradeReleaseMethod() {
189    return getUpgradeReleaseMethodHelper();
190  }
191
192  private static io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.UpgradeReleaseRequest,
193      hapi.services.rudder.Rudder.UpgradeReleaseResponse> getUpgradeReleaseMethodHelper() {
194    io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.UpgradeReleaseRequest, hapi.services.rudder.Rudder.UpgradeReleaseResponse> getUpgradeReleaseMethod;
195    if ((getUpgradeReleaseMethod = ReleaseModuleServiceGrpc.getUpgradeReleaseMethod) == null) {
196      synchronized (ReleaseModuleServiceGrpc.class) {
197        if ((getUpgradeReleaseMethod = ReleaseModuleServiceGrpc.getUpgradeReleaseMethod) == null) {
198          ReleaseModuleServiceGrpc.getUpgradeReleaseMethod = getUpgradeReleaseMethod = 
199              io.grpc.MethodDescriptor.<hapi.services.rudder.Rudder.UpgradeReleaseRequest, hapi.services.rudder.Rudder.UpgradeReleaseResponse>newBuilder()
200              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
201              .setFullMethodName(generateFullMethodName(
202                  "hapi.services.rudder.ReleaseModuleService", "UpgradeRelease"))
203              .setSampledToLocalTracing(true)
204              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
205                  hapi.services.rudder.Rudder.UpgradeReleaseRequest.getDefaultInstance()))
206              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
207                  hapi.services.rudder.Rudder.UpgradeReleaseResponse.getDefaultInstance()))
208                  .setSchemaDescriptor(new ReleaseModuleServiceMethodDescriptorSupplier("UpgradeRelease"))
209                  .build();
210          }
211        }
212     }
213     return getUpgradeReleaseMethod;
214  }
215  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
216  @java.lang.Deprecated // Use {@link #getReleaseStatusMethod()} instead. 
217  public static final io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.ReleaseStatusRequest,
218      hapi.services.rudder.Rudder.ReleaseStatusResponse> METHOD_RELEASE_STATUS = getReleaseStatusMethodHelper();
219
220  private static volatile io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.ReleaseStatusRequest,
221      hapi.services.rudder.Rudder.ReleaseStatusResponse> getReleaseStatusMethod;
222
223  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
224  public static io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.ReleaseStatusRequest,
225      hapi.services.rudder.Rudder.ReleaseStatusResponse> getReleaseStatusMethod() {
226    return getReleaseStatusMethodHelper();
227  }
228
229  private static io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.ReleaseStatusRequest,
230      hapi.services.rudder.Rudder.ReleaseStatusResponse> getReleaseStatusMethodHelper() {
231    io.grpc.MethodDescriptor<hapi.services.rudder.Rudder.ReleaseStatusRequest, hapi.services.rudder.Rudder.ReleaseStatusResponse> getReleaseStatusMethod;
232    if ((getReleaseStatusMethod = ReleaseModuleServiceGrpc.getReleaseStatusMethod) == null) {
233      synchronized (ReleaseModuleServiceGrpc.class) {
234        if ((getReleaseStatusMethod = ReleaseModuleServiceGrpc.getReleaseStatusMethod) == null) {
235          ReleaseModuleServiceGrpc.getReleaseStatusMethod = getReleaseStatusMethod = 
236              io.grpc.MethodDescriptor.<hapi.services.rudder.Rudder.ReleaseStatusRequest, hapi.services.rudder.Rudder.ReleaseStatusResponse>newBuilder()
237              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
238              .setFullMethodName(generateFullMethodName(
239                  "hapi.services.rudder.ReleaseModuleService", "ReleaseStatus"))
240              .setSampledToLocalTracing(true)
241              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
242                  hapi.services.rudder.Rudder.ReleaseStatusRequest.getDefaultInstance()))
243              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
244                  hapi.services.rudder.Rudder.ReleaseStatusResponse.getDefaultInstance()))
245                  .setSchemaDescriptor(new ReleaseModuleServiceMethodDescriptorSupplier("ReleaseStatus"))
246                  .build();
247          }
248        }
249     }
250     return getReleaseStatusMethod;
251  }
252
253  /**
254   * Creates a new async stub that supports all call types for the service
255   */
256  public static ReleaseModuleServiceStub newStub(io.grpc.Channel channel) {
257    return new ReleaseModuleServiceStub(channel);
258  }
259
260  /**
261   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
262   */
263  public static ReleaseModuleServiceBlockingStub newBlockingStub(
264      io.grpc.Channel channel) {
265    return new ReleaseModuleServiceBlockingStub(channel);
266  }
267
268  /**
269   * Creates a new ListenableFuture-style stub that supports unary calls on the service
270   */
271  public static ReleaseModuleServiceFutureStub newFutureStub(
272      io.grpc.Channel channel) {
273    return new ReleaseModuleServiceFutureStub(channel);
274  }
275
276  /**
277   */
278  public static abstract class ReleaseModuleServiceImplBase implements io.grpc.BindableService {
279
280    /**
281     */
282    public void version(hapi.services.rudder.Rudder.VersionReleaseRequest request,
283        io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.VersionReleaseResponse> responseObserver) {
284      asyncUnimplementedUnaryCall(getVersionMethodHelper(), responseObserver);
285    }
286
287    /**
288     * <pre>
289     * InstallRelease requests installation of a chart as a new release.
290     * </pre>
291     */
292    public void installRelease(hapi.services.rudder.Rudder.InstallReleaseRequest request,
293        io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.InstallReleaseResponse> responseObserver) {
294      asyncUnimplementedUnaryCall(getInstallReleaseMethodHelper(), responseObserver);
295    }
296
297    /**
298     * <pre>
299     * DeleteRelease requests deletion of a named release.
300     * </pre>
301     */
302    public void deleteRelease(hapi.services.rudder.Rudder.DeleteReleaseRequest request,
303        io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.DeleteReleaseResponse> responseObserver) {
304      asyncUnimplementedUnaryCall(getDeleteReleaseMethodHelper(), responseObserver);
305    }
306
307    /**
308     * <pre>
309     * RollbackRelease rolls back a release to a previous version.
310     * </pre>
311     */
312    public void rollbackRelease(hapi.services.rudder.Rudder.RollbackReleaseRequest request,
313        io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.RollbackReleaseResponse> responseObserver) {
314      asyncUnimplementedUnaryCall(getRollbackReleaseMethodHelper(), responseObserver);
315    }
316
317    /**
318     * <pre>
319     * UpgradeRelease updates release content.
320     * </pre>
321     */
322    public void upgradeRelease(hapi.services.rudder.Rudder.UpgradeReleaseRequest request,
323        io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.UpgradeReleaseResponse> responseObserver) {
324      asyncUnimplementedUnaryCall(getUpgradeReleaseMethodHelper(), responseObserver);
325    }
326
327    /**
328     * <pre>
329     * ReleaseStatus retrieves release status.
330     * </pre>
331     */
332    public void releaseStatus(hapi.services.rudder.Rudder.ReleaseStatusRequest request,
333        io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.ReleaseStatusResponse> responseObserver) {
334      asyncUnimplementedUnaryCall(getReleaseStatusMethodHelper(), responseObserver);
335    }
336
337    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
338      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
339          .addMethod(
340            getVersionMethodHelper(),
341            asyncUnaryCall(
342              new MethodHandlers<
343                hapi.services.rudder.Rudder.VersionReleaseRequest,
344                hapi.services.rudder.Rudder.VersionReleaseResponse>(
345                  this, METHODID_VERSION)))
346          .addMethod(
347            getInstallReleaseMethodHelper(),
348            asyncUnaryCall(
349              new MethodHandlers<
350                hapi.services.rudder.Rudder.InstallReleaseRequest,
351                hapi.services.rudder.Rudder.InstallReleaseResponse>(
352                  this, METHODID_INSTALL_RELEASE)))
353          .addMethod(
354            getDeleteReleaseMethodHelper(),
355            asyncUnaryCall(
356              new MethodHandlers<
357                hapi.services.rudder.Rudder.DeleteReleaseRequest,
358                hapi.services.rudder.Rudder.DeleteReleaseResponse>(
359                  this, METHODID_DELETE_RELEASE)))
360          .addMethod(
361            getRollbackReleaseMethodHelper(),
362            asyncUnaryCall(
363              new MethodHandlers<
364                hapi.services.rudder.Rudder.RollbackReleaseRequest,
365                hapi.services.rudder.Rudder.RollbackReleaseResponse>(
366                  this, METHODID_ROLLBACK_RELEASE)))
367          .addMethod(
368            getUpgradeReleaseMethodHelper(),
369            asyncUnaryCall(
370              new MethodHandlers<
371                hapi.services.rudder.Rudder.UpgradeReleaseRequest,
372                hapi.services.rudder.Rudder.UpgradeReleaseResponse>(
373                  this, METHODID_UPGRADE_RELEASE)))
374          .addMethod(
375            getReleaseStatusMethodHelper(),
376            asyncUnaryCall(
377              new MethodHandlers<
378                hapi.services.rudder.Rudder.ReleaseStatusRequest,
379                hapi.services.rudder.Rudder.ReleaseStatusResponse>(
380                  this, METHODID_RELEASE_STATUS)))
381          .build();
382    }
383  }
384
385  /**
386   */
387  public static final class ReleaseModuleServiceStub extends io.grpc.stub.AbstractStub<ReleaseModuleServiceStub> {
388    private ReleaseModuleServiceStub(io.grpc.Channel channel) {
389      super(channel);
390    }
391
392    private ReleaseModuleServiceStub(io.grpc.Channel channel,
393        io.grpc.CallOptions callOptions) {
394      super(channel, callOptions);
395    }
396
397    @java.lang.Override
398    protected ReleaseModuleServiceStub build(io.grpc.Channel channel,
399        io.grpc.CallOptions callOptions) {
400      return new ReleaseModuleServiceStub(channel, callOptions);
401    }
402
403    /**
404     */
405    public void version(hapi.services.rudder.Rudder.VersionReleaseRequest request,
406        io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.VersionReleaseResponse> responseObserver) {
407      asyncUnaryCall(
408          getChannel().newCall(getVersionMethodHelper(), getCallOptions()), request, responseObserver);
409    }
410
411    /**
412     * <pre>
413     * InstallRelease requests installation of a chart as a new release.
414     * </pre>
415     */
416    public void installRelease(hapi.services.rudder.Rudder.InstallReleaseRequest request,
417        io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.InstallReleaseResponse> responseObserver) {
418      asyncUnaryCall(
419          getChannel().newCall(getInstallReleaseMethodHelper(), getCallOptions()), request, responseObserver);
420    }
421
422    /**
423     * <pre>
424     * DeleteRelease requests deletion of a named release.
425     * </pre>
426     */
427    public void deleteRelease(hapi.services.rudder.Rudder.DeleteReleaseRequest request,
428        io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.DeleteReleaseResponse> responseObserver) {
429      asyncUnaryCall(
430          getChannel().newCall(getDeleteReleaseMethodHelper(), getCallOptions()), request, responseObserver);
431    }
432
433    /**
434     * <pre>
435     * RollbackRelease rolls back a release to a previous version.
436     * </pre>
437     */
438    public void rollbackRelease(hapi.services.rudder.Rudder.RollbackReleaseRequest request,
439        io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.RollbackReleaseResponse> responseObserver) {
440      asyncUnaryCall(
441          getChannel().newCall(getRollbackReleaseMethodHelper(), getCallOptions()), request, responseObserver);
442    }
443
444    /**
445     * <pre>
446     * UpgradeRelease updates release content.
447     * </pre>
448     */
449    public void upgradeRelease(hapi.services.rudder.Rudder.UpgradeReleaseRequest request,
450        io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.UpgradeReleaseResponse> responseObserver) {
451      asyncUnaryCall(
452          getChannel().newCall(getUpgradeReleaseMethodHelper(), getCallOptions()), request, responseObserver);
453    }
454
455    /**
456     * <pre>
457     * ReleaseStatus retrieves release status.
458     * </pre>
459     */
460    public void releaseStatus(hapi.services.rudder.Rudder.ReleaseStatusRequest request,
461        io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.ReleaseStatusResponse> responseObserver) {
462      asyncUnaryCall(
463          getChannel().newCall(getReleaseStatusMethodHelper(), getCallOptions()), request, responseObserver);
464    }
465  }
466
467  /**
468   */
469  public static final class ReleaseModuleServiceBlockingStub extends io.grpc.stub.AbstractStub<ReleaseModuleServiceBlockingStub> {
470    private ReleaseModuleServiceBlockingStub(io.grpc.Channel channel) {
471      super(channel);
472    }
473
474    private ReleaseModuleServiceBlockingStub(io.grpc.Channel channel,
475        io.grpc.CallOptions callOptions) {
476      super(channel, callOptions);
477    }
478
479    @java.lang.Override
480    protected ReleaseModuleServiceBlockingStub build(io.grpc.Channel channel,
481        io.grpc.CallOptions callOptions) {
482      return new ReleaseModuleServiceBlockingStub(channel, callOptions);
483    }
484
485    /**
486     */
487    public hapi.services.rudder.Rudder.VersionReleaseResponse version(hapi.services.rudder.Rudder.VersionReleaseRequest request) {
488      return blockingUnaryCall(
489          getChannel(), getVersionMethodHelper(), getCallOptions(), request);
490    }
491
492    /**
493     * <pre>
494     * InstallRelease requests installation of a chart as a new release.
495     * </pre>
496     */
497    public hapi.services.rudder.Rudder.InstallReleaseResponse installRelease(hapi.services.rudder.Rudder.InstallReleaseRequest request) {
498      return blockingUnaryCall(
499          getChannel(), getInstallReleaseMethodHelper(), getCallOptions(), request);
500    }
501
502    /**
503     * <pre>
504     * DeleteRelease requests deletion of a named release.
505     * </pre>
506     */
507    public hapi.services.rudder.Rudder.DeleteReleaseResponse deleteRelease(hapi.services.rudder.Rudder.DeleteReleaseRequest request) {
508      return blockingUnaryCall(
509          getChannel(), getDeleteReleaseMethodHelper(), getCallOptions(), request);
510    }
511
512    /**
513     * <pre>
514     * RollbackRelease rolls back a release to a previous version.
515     * </pre>
516     */
517    public hapi.services.rudder.Rudder.RollbackReleaseResponse rollbackRelease(hapi.services.rudder.Rudder.RollbackReleaseRequest request) {
518      return blockingUnaryCall(
519          getChannel(), getRollbackReleaseMethodHelper(), getCallOptions(), request);
520    }
521
522    /**
523     * <pre>
524     * UpgradeRelease updates release content.
525     * </pre>
526     */
527    public hapi.services.rudder.Rudder.UpgradeReleaseResponse upgradeRelease(hapi.services.rudder.Rudder.UpgradeReleaseRequest request) {
528      return blockingUnaryCall(
529          getChannel(), getUpgradeReleaseMethodHelper(), getCallOptions(), request);
530    }
531
532    /**
533     * <pre>
534     * ReleaseStatus retrieves release status.
535     * </pre>
536     */
537    public hapi.services.rudder.Rudder.ReleaseStatusResponse releaseStatus(hapi.services.rudder.Rudder.ReleaseStatusRequest request) {
538      return blockingUnaryCall(
539          getChannel(), getReleaseStatusMethodHelper(), getCallOptions(), request);
540    }
541  }
542
543  /**
544   */
545  public static final class ReleaseModuleServiceFutureStub extends io.grpc.stub.AbstractStub<ReleaseModuleServiceFutureStub> {
546    private ReleaseModuleServiceFutureStub(io.grpc.Channel channel) {
547      super(channel);
548    }
549
550    private ReleaseModuleServiceFutureStub(io.grpc.Channel channel,
551        io.grpc.CallOptions callOptions) {
552      super(channel, callOptions);
553    }
554
555    @java.lang.Override
556    protected ReleaseModuleServiceFutureStub build(io.grpc.Channel channel,
557        io.grpc.CallOptions callOptions) {
558      return new ReleaseModuleServiceFutureStub(channel, callOptions);
559    }
560
561    /**
562     */
563    public com.google.common.util.concurrent.ListenableFuture<hapi.services.rudder.Rudder.VersionReleaseResponse> version(
564        hapi.services.rudder.Rudder.VersionReleaseRequest request) {
565      return futureUnaryCall(
566          getChannel().newCall(getVersionMethodHelper(), getCallOptions()), request);
567    }
568
569    /**
570     * <pre>
571     * InstallRelease requests installation of a chart as a new release.
572     * </pre>
573     */
574    public com.google.common.util.concurrent.ListenableFuture<hapi.services.rudder.Rudder.InstallReleaseResponse> installRelease(
575        hapi.services.rudder.Rudder.InstallReleaseRequest request) {
576      return futureUnaryCall(
577          getChannel().newCall(getInstallReleaseMethodHelper(), getCallOptions()), request);
578    }
579
580    /**
581     * <pre>
582     * DeleteRelease requests deletion of a named release.
583     * </pre>
584     */
585    public com.google.common.util.concurrent.ListenableFuture<hapi.services.rudder.Rudder.DeleteReleaseResponse> deleteRelease(
586        hapi.services.rudder.Rudder.DeleteReleaseRequest request) {
587      return futureUnaryCall(
588          getChannel().newCall(getDeleteReleaseMethodHelper(), getCallOptions()), request);
589    }
590
591    /**
592     * <pre>
593     * RollbackRelease rolls back a release to a previous version.
594     * </pre>
595     */
596    public com.google.common.util.concurrent.ListenableFuture<hapi.services.rudder.Rudder.RollbackReleaseResponse> rollbackRelease(
597        hapi.services.rudder.Rudder.RollbackReleaseRequest request) {
598      return futureUnaryCall(
599          getChannel().newCall(getRollbackReleaseMethodHelper(), getCallOptions()), request);
600    }
601
602    /**
603     * <pre>
604     * UpgradeRelease updates release content.
605     * </pre>
606     */
607    public com.google.common.util.concurrent.ListenableFuture<hapi.services.rudder.Rudder.UpgradeReleaseResponse> upgradeRelease(
608        hapi.services.rudder.Rudder.UpgradeReleaseRequest request) {
609      return futureUnaryCall(
610          getChannel().newCall(getUpgradeReleaseMethodHelper(), getCallOptions()), request);
611    }
612
613    /**
614     * <pre>
615     * ReleaseStatus retrieves release status.
616     * </pre>
617     */
618    public com.google.common.util.concurrent.ListenableFuture<hapi.services.rudder.Rudder.ReleaseStatusResponse> releaseStatus(
619        hapi.services.rudder.Rudder.ReleaseStatusRequest request) {
620      return futureUnaryCall(
621          getChannel().newCall(getReleaseStatusMethodHelper(), getCallOptions()), request);
622    }
623  }
624
625  private static final int METHODID_VERSION = 0;
626  private static final int METHODID_INSTALL_RELEASE = 1;
627  private static final int METHODID_DELETE_RELEASE = 2;
628  private static final int METHODID_ROLLBACK_RELEASE = 3;
629  private static final int METHODID_UPGRADE_RELEASE = 4;
630  private static final int METHODID_RELEASE_STATUS = 5;
631
632  private static final class MethodHandlers<Req, Resp> implements
633      io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
634      io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
635      io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
636      io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
637    private final ReleaseModuleServiceImplBase serviceImpl;
638    private final int methodId;
639
640    MethodHandlers(ReleaseModuleServiceImplBase serviceImpl, int methodId) {
641      this.serviceImpl = serviceImpl;
642      this.methodId = methodId;
643    }
644
645    @java.lang.Override
646    @java.lang.SuppressWarnings("unchecked")
647    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
648      switch (methodId) {
649        case METHODID_VERSION:
650          serviceImpl.version((hapi.services.rudder.Rudder.VersionReleaseRequest) request,
651              (io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.VersionReleaseResponse>) responseObserver);
652          break;
653        case METHODID_INSTALL_RELEASE:
654          serviceImpl.installRelease((hapi.services.rudder.Rudder.InstallReleaseRequest) request,
655              (io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.InstallReleaseResponse>) responseObserver);
656          break;
657        case METHODID_DELETE_RELEASE:
658          serviceImpl.deleteRelease((hapi.services.rudder.Rudder.DeleteReleaseRequest) request,
659              (io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.DeleteReleaseResponse>) responseObserver);
660          break;
661        case METHODID_ROLLBACK_RELEASE:
662          serviceImpl.rollbackRelease((hapi.services.rudder.Rudder.RollbackReleaseRequest) request,
663              (io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.RollbackReleaseResponse>) responseObserver);
664          break;
665        case METHODID_UPGRADE_RELEASE:
666          serviceImpl.upgradeRelease((hapi.services.rudder.Rudder.UpgradeReleaseRequest) request,
667              (io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.UpgradeReleaseResponse>) responseObserver);
668          break;
669        case METHODID_RELEASE_STATUS:
670          serviceImpl.releaseStatus((hapi.services.rudder.Rudder.ReleaseStatusRequest) request,
671              (io.grpc.stub.StreamObserver<hapi.services.rudder.Rudder.ReleaseStatusResponse>) responseObserver);
672          break;
673        default:
674          throw new AssertionError();
675      }
676    }
677
678    @java.lang.Override
679    @java.lang.SuppressWarnings("unchecked")
680    public io.grpc.stub.StreamObserver<Req> invoke(
681        io.grpc.stub.StreamObserver<Resp> responseObserver) {
682      switch (methodId) {
683        default:
684          throw new AssertionError();
685      }
686    }
687  }
688
689  private static abstract class ReleaseModuleServiceBaseDescriptorSupplier
690      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
691    ReleaseModuleServiceBaseDescriptorSupplier() {}
692
693    @java.lang.Override
694    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
695      return hapi.services.rudder.Rudder.getDescriptor();
696    }
697
698    @java.lang.Override
699    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
700      return getFileDescriptor().findServiceByName("ReleaseModuleService");
701    }
702  }
703
704  private static final class ReleaseModuleServiceFileDescriptorSupplier
705      extends ReleaseModuleServiceBaseDescriptorSupplier {
706    ReleaseModuleServiceFileDescriptorSupplier() {}
707  }
708
709  private static final class ReleaseModuleServiceMethodDescriptorSupplier
710      extends ReleaseModuleServiceBaseDescriptorSupplier
711      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
712    private final String methodName;
713
714    ReleaseModuleServiceMethodDescriptorSupplier(String methodName) {
715      this.methodName = methodName;
716    }
717
718    @java.lang.Override
719    public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
720      return getServiceDescriptor().findMethodByName(methodName);
721    }
722  }
723
724  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
725
726  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
727    io.grpc.ServiceDescriptor result = serviceDescriptor;
728    if (result == null) {
729      synchronized (ReleaseModuleServiceGrpc.class) {
730        result = serviceDescriptor;
731        if (result == null) {
732          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
733              .setSchemaDescriptor(new ReleaseModuleServiceFileDescriptorSupplier())
734              .addMethod(getVersionMethodHelper())
735              .addMethod(getInstallReleaseMethodHelper())
736              .addMethod(getDeleteReleaseMethodHelper())
737              .addMethod(getRollbackReleaseMethodHelper())
738              .addMethod(getUpgradeReleaseMethodHelper())
739              .addMethod(getReleaseStatusMethodHelper())
740              .build();
741        }
742      }
743    }
744    return result;
745  }
746}