001package hapi.services.tiller;
002
003import static io.grpc.stub.ClientCalls.asyncUnaryCall;
004import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
005import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
006import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
007import static io.grpc.stub.ClientCalls.blockingUnaryCall;
008import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
009import static io.grpc.stub.ClientCalls.futureUnaryCall;
010import static io.grpc.MethodDescriptor.generateFullMethodName;
011import static io.grpc.stub.ServerCalls.asyncUnaryCall;
012import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
013import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
014import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
015import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
016import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
017
018/**
019 * <pre>
020 * ReleaseService is the service that a helm application uses to mutate,
021 * query, and manage releases.
022 *    Release: A named installation composed of a chart and
023 *         config. At any given time a release has one
024 *         chart and one config.
025 *    Config:  A config is a YAML file that supplies values
026 *         to the parametrizable templates of a chart.
027 *    Chart:   A chart is a helm package that contains
028 *         metadata, a default config, zero or more
029 *         optionally parameterizable templates, and
030 *         zero or more charts (dependencies).
031 * </pre>
032 */
033@javax.annotation.Generated(
034    value = "by gRPC proto compiler (version 1.4.0)",
035    comments = "Source: hapi/services/tiller.proto")
036public final class ReleaseServiceGrpc {
037
038  private ReleaseServiceGrpc() {}
039
040  public static final String SERVICE_NAME = "hapi.services.tiller.ReleaseService";
041
042  // Static method descriptors that strictly reflect the proto.
043  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
044  public static final io.grpc.MethodDescriptor<hapi.services.tiller.Tiller.ListReleasesRequest,
045      hapi.services.tiller.Tiller.ListReleasesResponse> METHOD_LIST_RELEASES =
046      io.grpc.MethodDescriptor.<hapi.services.tiller.Tiller.ListReleasesRequest, hapi.services.tiller.Tiller.ListReleasesResponse>newBuilder()
047          .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
048          .setFullMethodName(generateFullMethodName(
049              "hapi.services.tiller.ReleaseService", "ListReleases"))
050          .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
051              hapi.services.tiller.Tiller.ListReleasesRequest.getDefaultInstance()))
052          .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
053              hapi.services.tiller.Tiller.ListReleasesResponse.getDefaultInstance()))
054          .build();
055  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
056  public static final io.grpc.MethodDescriptor<hapi.services.tiller.Tiller.GetReleaseStatusRequest,
057      hapi.services.tiller.Tiller.GetReleaseStatusResponse> METHOD_GET_RELEASE_STATUS =
058      io.grpc.MethodDescriptor.<hapi.services.tiller.Tiller.GetReleaseStatusRequest, hapi.services.tiller.Tiller.GetReleaseStatusResponse>newBuilder()
059          .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
060          .setFullMethodName(generateFullMethodName(
061              "hapi.services.tiller.ReleaseService", "GetReleaseStatus"))
062          .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
063              hapi.services.tiller.Tiller.GetReleaseStatusRequest.getDefaultInstance()))
064          .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
065              hapi.services.tiller.Tiller.GetReleaseStatusResponse.getDefaultInstance()))
066          .build();
067  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
068  public static final io.grpc.MethodDescriptor<hapi.services.tiller.Tiller.GetReleaseContentRequest,
069      hapi.services.tiller.Tiller.GetReleaseContentResponse> METHOD_GET_RELEASE_CONTENT =
070      io.grpc.MethodDescriptor.<hapi.services.tiller.Tiller.GetReleaseContentRequest, hapi.services.tiller.Tiller.GetReleaseContentResponse>newBuilder()
071          .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
072          .setFullMethodName(generateFullMethodName(
073              "hapi.services.tiller.ReleaseService", "GetReleaseContent"))
074          .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
075              hapi.services.tiller.Tiller.GetReleaseContentRequest.getDefaultInstance()))
076          .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
077              hapi.services.tiller.Tiller.GetReleaseContentResponse.getDefaultInstance()))
078          .build();
079  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
080  public static final io.grpc.MethodDescriptor<hapi.services.tiller.Tiller.UpdateReleaseRequest,
081      hapi.services.tiller.Tiller.UpdateReleaseResponse> METHOD_UPDATE_RELEASE =
082      io.grpc.MethodDescriptor.<hapi.services.tiller.Tiller.UpdateReleaseRequest, hapi.services.tiller.Tiller.UpdateReleaseResponse>newBuilder()
083          .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
084          .setFullMethodName(generateFullMethodName(
085              "hapi.services.tiller.ReleaseService", "UpdateRelease"))
086          .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
087              hapi.services.tiller.Tiller.UpdateReleaseRequest.getDefaultInstance()))
088          .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
089              hapi.services.tiller.Tiller.UpdateReleaseResponse.getDefaultInstance()))
090          .build();
091  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
092  public static final io.grpc.MethodDescriptor<hapi.services.tiller.Tiller.InstallReleaseRequest,
093      hapi.services.tiller.Tiller.InstallReleaseResponse> METHOD_INSTALL_RELEASE =
094      io.grpc.MethodDescriptor.<hapi.services.tiller.Tiller.InstallReleaseRequest, hapi.services.tiller.Tiller.InstallReleaseResponse>newBuilder()
095          .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
096          .setFullMethodName(generateFullMethodName(
097              "hapi.services.tiller.ReleaseService", "InstallRelease"))
098          .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
099              hapi.services.tiller.Tiller.InstallReleaseRequest.getDefaultInstance()))
100          .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
101              hapi.services.tiller.Tiller.InstallReleaseResponse.getDefaultInstance()))
102          .build();
103  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
104  public static final io.grpc.MethodDescriptor<hapi.services.tiller.Tiller.UninstallReleaseRequest,
105      hapi.services.tiller.Tiller.UninstallReleaseResponse> METHOD_UNINSTALL_RELEASE =
106      io.grpc.MethodDescriptor.<hapi.services.tiller.Tiller.UninstallReleaseRequest, hapi.services.tiller.Tiller.UninstallReleaseResponse>newBuilder()
107          .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
108          .setFullMethodName(generateFullMethodName(
109              "hapi.services.tiller.ReleaseService", "UninstallRelease"))
110          .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
111              hapi.services.tiller.Tiller.UninstallReleaseRequest.getDefaultInstance()))
112          .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
113              hapi.services.tiller.Tiller.UninstallReleaseResponse.getDefaultInstance()))
114          .build();
115  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
116  public static final io.grpc.MethodDescriptor<hapi.services.tiller.Tiller.GetVersionRequest,
117      hapi.services.tiller.Tiller.GetVersionResponse> METHOD_GET_VERSION =
118      io.grpc.MethodDescriptor.<hapi.services.tiller.Tiller.GetVersionRequest, hapi.services.tiller.Tiller.GetVersionResponse>newBuilder()
119          .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
120          .setFullMethodName(generateFullMethodName(
121              "hapi.services.tiller.ReleaseService", "GetVersion"))
122          .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
123              hapi.services.tiller.Tiller.GetVersionRequest.getDefaultInstance()))
124          .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
125              hapi.services.tiller.Tiller.GetVersionResponse.getDefaultInstance()))
126          .build();
127  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
128  public static final io.grpc.MethodDescriptor<hapi.services.tiller.Tiller.RollbackReleaseRequest,
129      hapi.services.tiller.Tiller.RollbackReleaseResponse> METHOD_ROLLBACK_RELEASE =
130      io.grpc.MethodDescriptor.<hapi.services.tiller.Tiller.RollbackReleaseRequest, hapi.services.tiller.Tiller.RollbackReleaseResponse>newBuilder()
131          .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
132          .setFullMethodName(generateFullMethodName(
133              "hapi.services.tiller.ReleaseService", "RollbackRelease"))
134          .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
135              hapi.services.tiller.Tiller.RollbackReleaseRequest.getDefaultInstance()))
136          .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
137              hapi.services.tiller.Tiller.RollbackReleaseResponse.getDefaultInstance()))
138          .build();
139  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
140  public static final io.grpc.MethodDescriptor<hapi.services.tiller.Tiller.GetHistoryRequest,
141      hapi.services.tiller.Tiller.GetHistoryResponse> METHOD_GET_HISTORY =
142      io.grpc.MethodDescriptor.<hapi.services.tiller.Tiller.GetHistoryRequest, hapi.services.tiller.Tiller.GetHistoryResponse>newBuilder()
143          .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
144          .setFullMethodName(generateFullMethodName(
145              "hapi.services.tiller.ReleaseService", "GetHistory"))
146          .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
147              hapi.services.tiller.Tiller.GetHistoryRequest.getDefaultInstance()))
148          .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
149              hapi.services.tiller.Tiller.GetHistoryResponse.getDefaultInstance()))
150          .build();
151  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
152  public static final io.grpc.MethodDescriptor<hapi.services.tiller.Tiller.TestReleaseRequest,
153      hapi.services.tiller.Tiller.TestReleaseResponse> METHOD_RUN_RELEASE_TEST =
154      io.grpc.MethodDescriptor.<hapi.services.tiller.Tiller.TestReleaseRequest, hapi.services.tiller.Tiller.TestReleaseResponse>newBuilder()
155          .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
156          .setFullMethodName(generateFullMethodName(
157              "hapi.services.tiller.ReleaseService", "RunReleaseTest"))
158          .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
159              hapi.services.tiller.Tiller.TestReleaseRequest.getDefaultInstance()))
160          .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
161              hapi.services.tiller.Tiller.TestReleaseResponse.getDefaultInstance()))
162          .build();
163
164  /**
165   * Creates a new async stub that supports all call types for the service
166   */
167  public static ReleaseServiceStub newStub(io.grpc.Channel channel) {
168    return new ReleaseServiceStub(channel);
169  }
170
171  /**
172   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
173   */
174  public static ReleaseServiceBlockingStub newBlockingStub(
175      io.grpc.Channel channel) {
176    return new ReleaseServiceBlockingStub(channel);
177  }
178
179  /**
180   * Creates a new ListenableFuture-style stub that supports unary calls on the service
181   */
182  public static ReleaseServiceFutureStub newFutureStub(
183      io.grpc.Channel channel) {
184    return new ReleaseServiceFutureStub(channel);
185  }
186
187  /**
188   * <pre>
189   * ReleaseService is the service that a helm application uses to mutate,
190   * query, and manage releases.
191   *    Release: A named installation composed of a chart and
192   *         config. At any given time a release has one
193   *         chart and one config.
194   *    Config:  A config is a YAML file that supplies values
195   *         to the parametrizable templates of a chart.
196   *    Chart:   A chart is a helm package that contains
197   *         metadata, a default config, zero or more
198   *         optionally parameterizable templates, and
199   *         zero or more charts (dependencies).
200   * </pre>
201   */
202  public static abstract class ReleaseServiceImplBase implements io.grpc.BindableService {
203
204    /**
205     * <pre>
206     * ListReleases retrieves release history.
207     * TODO: Allow filtering the set of releases by
208     * release status. By default, ListAllReleases returns the releases who
209     * current status is "Active".
210     * </pre>
211     */
212    public void listReleases(hapi.services.tiller.Tiller.ListReleasesRequest request,
213        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.ListReleasesResponse> responseObserver) {
214      asyncUnimplementedUnaryCall(METHOD_LIST_RELEASES, responseObserver);
215    }
216
217    /**
218     * <pre>
219     * GetReleasesStatus retrieves status information for the specified release.
220     * </pre>
221     */
222    public void getReleaseStatus(hapi.services.tiller.Tiller.GetReleaseStatusRequest request,
223        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.GetReleaseStatusResponse> responseObserver) {
224      asyncUnimplementedUnaryCall(METHOD_GET_RELEASE_STATUS, responseObserver);
225    }
226
227    /**
228     * <pre>
229     * GetReleaseContent retrieves the release content (chart + value) for the specified release.
230     * </pre>
231     */
232    public void getReleaseContent(hapi.services.tiller.Tiller.GetReleaseContentRequest request,
233        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.GetReleaseContentResponse> responseObserver) {
234      asyncUnimplementedUnaryCall(METHOD_GET_RELEASE_CONTENT, responseObserver);
235    }
236
237    /**
238     * <pre>
239     * UpdateRelease updates release content.
240     * </pre>
241     */
242    public void updateRelease(hapi.services.tiller.Tiller.UpdateReleaseRequest request,
243        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.UpdateReleaseResponse> responseObserver) {
244      asyncUnimplementedUnaryCall(METHOD_UPDATE_RELEASE, responseObserver);
245    }
246
247    /**
248     * <pre>
249     * InstallRelease requests installation of a chart as a new release.
250     * </pre>
251     */
252    public void installRelease(hapi.services.tiller.Tiller.InstallReleaseRequest request,
253        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.InstallReleaseResponse> responseObserver) {
254      asyncUnimplementedUnaryCall(METHOD_INSTALL_RELEASE, responseObserver);
255    }
256
257    /**
258     * <pre>
259     * UninstallRelease requests deletion of a named release.
260     * </pre>
261     */
262    public void uninstallRelease(hapi.services.tiller.Tiller.UninstallReleaseRequest request,
263        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.UninstallReleaseResponse> responseObserver) {
264      asyncUnimplementedUnaryCall(METHOD_UNINSTALL_RELEASE, responseObserver);
265    }
266
267    /**
268     * <pre>
269     * GetVersion returns the current version of the server.
270     * </pre>
271     */
272    public void getVersion(hapi.services.tiller.Tiller.GetVersionRequest request,
273        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.GetVersionResponse> responseObserver) {
274      asyncUnimplementedUnaryCall(METHOD_GET_VERSION, responseObserver);
275    }
276
277    /**
278     * <pre>
279     * RollbackRelease rolls back a release to a previous version.
280     * </pre>
281     */
282    public void rollbackRelease(hapi.services.tiller.Tiller.RollbackReleaseRequest request,
283        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.RollbackReleaseResponse> responseObserver) {
284      asyncUnimplementedUnaryCall(METHOD_ROLLBACK_RELEASE, responseObserver);
285    }
286
287    /**
288     * <pre>
289     * ReleaseHistory retrieves a releasse's history.
290     * </pre>
291     */
292    public void getHistory(hapi.services.tiller.Tiller.GetHistoryRequest request,
293        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.GetHistoryResponse> responseObserver) {
294      asyncUnimplementedUnaryCall(METHOD_GET_HISTORY, responseObserver);
295    }
296
297    /**
298     * <pre>
299     * RunReleaseTest executes the tests defined of a named release
300     * </pre>
301     */
302    public void runReleaseTest(hapi.services.tiller.Tiller.TestReleaseRequest request,
303        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.TestReleaseResponse> responseObserver) {
304      asyncUnimplementedUnaryCall(METHOD_RUN_RELEASE_TEST, responseObserver);
305    }
306
307    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
308      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
309          .addMethod(
310            METHOD_LIST_RELEASES,
311            asyncServerStreamingCall(
312              new MethodHandlers<
313                hapi.services.tiller.Tiller.ListReleasesRequest,
314                hapi.services.tiller.Tiller.ListReleasesResponse>(
315                  this, METHODID_LIST_RELEASES)))
316          .addMethod(
317            METHOD_GET_RELEASE_STATUS,
318            asyncUnaryCall(
319              new MethodHandlers<
320                hapi.services.tiller.Tiller.GetReleaseStatusRequest,
321                hapi.services.tiller.Tiller.GetReleaseStatusResponse>(
322                  this, METHODID_GET_RELEASE_STATUS)))
323          .addMethod(
324            METHOD_GET_RELEASE_CONTENT,
325            asyncUnaryCall(
326              new MethodHandlers<
327                hapi.services.tiller.Tiller.GetReleaseContentRequest,
328                hapi.services.tiller.Tiller.GetReleaseContentResponse>(
329                  this, METHODID_GET_RELEASE_CONTENT)))
330          .addMethod(
331            METHOD_UPDATE_RELEASE,
332            asyncUnaryCall(
333              new MethodHandlers<
334                hapi.services.tiller.Tiller.UpdateReleaseRequest,
335                hapi.services.tiller.Tiller.UpdateReleaseResponse>(
336                  this, METHODID_UPDATE_RELEASE)))
337          .addMethod(
338            METHOD_INSTALL_RELEASE,
339            asyncUnaryCall(
340              new MethodHandlers<
341                hapi.services.tiller.Tiller.InstallReleaseRequest,
342                hapi.services.tiller.Tiller.InstallReleaseResponse>(
343                  this, METHODID_INSTALL_RELEASE)))
344          .addMethod(
345            METHOD_UNINSTALL_RELEASE,
346            asyncUnaryCall(
347              new MethodHandlers<
348                hapi.services.tiller.Tiller.UninstallReleaseRequest,
349                hapi.services.tiller.Tiller.UninstallReleaseResponse>(
350                  this, METHODID_UNINSTALL_RELEASE)))
351          .addMethod(
352            METHOD_GET_VERSION,
353            asyncUnaryCall(
354              new MethodHandlers<
355                hapi.services.tiller.Tiller.GetVersionRequest,
356                hapi.services.tiller.Tiller.GetVersionResponse>(
357                  this, METHODID_GET_VERSION)))
358          .addMethod(
359            METHOD_ROLLBACK_RELEASE,
360            asyncUnaryCall(
361              new MethodHandlers<
362                hapi.services.tiller.Tiller.RollbackReleaseRequest,
363                hapi.services.tiller.Tiller.RollbackReleaseResponse>(
364                  this, METHODID_ROLLBACK_RELEASE)))
365          .addMethod(
366            METHOD_GET_HISTORY,
367            asyncUnaryCall(
368              new MethodHandlers<
369                hapi.services.tiller.Tiller.GetHistoryRequest,
370                hapi.services.tiller.Tiller.GetHistoryResponse>(
371                  this, METHODID_GET_HISTORY)))
372          .addMethod(
373            METHOD_RUN_RELEASE_TEST,
374            asyncServerStreamingCall(
375              new MethodHandlers<
376                hapi.services.tiller.Tiller.TestReleaseRequest,
377                hapi.services.tiller.Tiller.TestReleaseResponse>(
378                  this, METHODID_RUN_RELEASE_TEST)))
379          .build();
380    }
381  }
382
383  /**
384   * <pre>
385   * ReleaseService is the service that a helm application uses to mutate,
386   * query, and manage releases.
387   *    Release: A named installation composed of a chart and
388   *         config. At any given time a release has one
389   *         chart and one config.
390   *    Config:  A config is a YAML file that supplies values
391   *         to the parametrizable templates of a chart.
392   *    Chart:   A chart is a helm package that contains
393   *         metadata, a default config, zero or more
394   *         optionally parameterizable templates, and
395   *         zero or more charts (dependencies).
396   * </pre>
397   */
398  public static final class ReleaseServiceStub extends io.grpc.stub.AbstractStub<ReleaseServiceStub> {
399    private ReleaseServiceStub(io.grpc.Channel channel) {
400      super(channel);
401    }
402
403    private ReleaseServiceStub(io.grpc.Channel channel,
404        io.grpc.CallOptions callOptions) {
405      super(channel, callOptions);
406    }
407
408    @java.lang.Override
409    protected ReleaseServiceStub build(io.grpc.Channel channel,
410        io.grpc.CallOptions callOptions) {
411      return new ReleaseServiceStub(channel, callOptions);
412    }
413
414    /**
415     * <pre>
416     * ListReleases retrieves release history.
417     * TODO: Allow filtering the set of releases by
418     * release status. By default, ListAllReleases returns the releases who
419     * current status is "Active".
420     * </pre>
421     */
422    public void listReleases(hapi.services.tiller.Tiller.ListReleasesRequest request,
423        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.ListReleasesResponse> responseObserver) {
424      asyncServerStreamingCall(
425          getChannel().newCall(METHOD_LIST_RELEASES, getCallOptions()), request, responseObserver);
426    }
427
428    /**
429     * <pre>
430     * GetReleasesStatus retrieves status information for the specified release.
431     * </pre>
432     */
433    public void getReleaseStatus(hapi.services.tiller.Tiller.GetReleaseStatusRequest request,
434        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.GetReleaseStatusResponse> responseObserver) {
435      asyncUnaryCall(
436          getChannel().newCall(METHOD_GET_RELEASE_STATUS, getCallOptions()), request, responseObserver);
437    }
438
439    /**
440     * <pre>
441     * GetReleaseContent retrieves the release content (chart + value) for the specified release.
442     * </pre>
443     */
444    public void getReleaseContent(hapi.services.tiller.Tiller.GetReleaseContentRequest request,
445        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.GetReleaseContentResponse> responseObserver) {
446      asyncUnaryCall(
447          getChannel().newCall(METHOD_GET_RELEASE_CONTENT, getCallOptions()), request, responseObserver);
448    }
449
450    /**
451     * <pre>
452     * UpdateRelease updates release content.
453     * </pre>
454     */
455    public void updateRelease(hapi.services.tiller.Tiller.UpdateReleaseRequest request,
456        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.UpdateReleaseResponse> responseObserver) {
457      asyncUnaryCall(
458          getChannel().newCall(METHOD_UPDATE_RELEASE, getCallOptions()), request, responseObserver);
459    }
460
461    /**
462     * <pre>
463     * InstallRelease requests installation of a chart as a new release.
464     * </pre>
465     */
466    public void installRelease(hapi.services.tiller.Tiller.InstallReleaseRequest request,
467        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.InstallReleaseResponse> responseObserver) {
468      asyncUnaryCall(
469          getChannel().newCall(METHOD_INSTALL_RELEASE, getCallOptions()), request, responseObserver);
470    }
471
472    /**
473     * <pre>
474     * UninstallRelease requests deletion of a named release.
475     * </pre>
476     */
477    public void uninstallRelease(hapi.services.tiller.Tiller.UninstallReleaseRequest request,
478        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.UninstallReleaseResponse> responseObserver) {
479      asyncUnaryCall(
480          getChannel().newCall(METHOD_UNINSTALL_RELEASE, getCallOptions()), request, responseObserver);
481    }
482
483    /**
484     * <pre>
485     * GetVersion returns the current version of the server.
486     * </pre>
487     */
488    public void getVersion(hapi.services.tiller.Tiller.GetVersionRequest request,
489        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.GetVersionResponse> responseObserver) {
490      asyncUnaryCall(
491          getChannel().newCall(METHOD_GET_VERSION, getCallOptions()), request, responseObserver);
492    }
493
494    /**
495     * <pre>
496     * RollbackRelease rolls back a release to a previous version.
497     * </pre>
498     */
499    public void rollbackRelease(hapi.services.tiller.Tiller.RollbackReleaseRequest request,
500        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.RollbackReleaseResponse> responseObserver) {
501      asyncUnaryCall(
502          getChannel().newCall(METHOD_ROLLBACK_RELEASE, getCallOptions()), request, responseObserver);
503    }
504
505    /**
506     * <pre>
507     * ReleaseHistory retrieves a releasse's history.
508     * </pre>
509     */
510    public void getHistory(hapi.services.tiller.Tiller.GetHistoryRequest request,
511        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.GetHistoryResponse> responseObserver) {
512      asyncUnaryCall(
513          getChannel().newCall(METHOD_GET_HISTORY, getCallOptions()), request, responseObserver);
514    }
515
516    /**
517     * <pre>
518     * RunReleaseTest executes the tests defined of a named release
519     * </pre>
520     */
521    public void runReleaseTest(hapi.services.tiller.Tiller.TestReleaseRequest request,
522        io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.TestReleaseResponse> responseObserver) {
523      asyncServerStreamingCall(
524          getChannel().newCall(METHOD_RUN_RELEASE_TEST, getCallOptions()), request, responseObserver);
525    }
526  }
527
528  /**
529   * <pre>
530   * ReleaseService is the service that a helm application uses to mutate,
531   * query, and manage releases.
532   *    Release: A named installation composed of a chart and
533   *         config. At any given time a release has one
534   *         chart and one config.
535   *    Config:  A config is a YAML file that supplies values
536   *         to the parametrizable templates of a chart.
537   *    Chart:   A chart is a helm package that contains
538   *         metadata, a default config, zero or more
539   *         optionally parameterizable templates, and
540   *         zero or more charts (dependencies).
541   * </pre>
542   */
543  public static final class ReleaseServiceBlockingStub extends io.grpc.stub.AbstractStub<ReleaseServiceBlockingStub> {
544    private ReleaseServiceBlockingStub(io.grpc.Channel channel) {
545      super(channel);
546    }
547
548    private ReleaseServiceBlockingStub(io.grpc.Channel channel,
549        io.grpc.CallOptions callOptions) {
550      super(channel, callOptions);
551    }
552
553    @java.lang.Override
554    protected ReleaseServiceBlockingStub build(io.grpc.Channel channel,
555        io.grpc.CallOptions callOptions) {
556      return new ReleaseServiceBlockingStub(channel, callOptions);
557    }
558
559    /**
560     * <pre>
561     * ListReleases retrieves release history.
562     * TODO: Allow filtering the set of releases by
563     * release status. By default, ListAllReleases returns the releases who
564     * current status is "Active".
565     * </pre>
566     */
567    public java.util.Iterator<hapi.services.tiller.Tiller.ListReleasesResponse> listReleases(
568        hapi.services.tiller.Tiller.ListReleasesRequest request) {
569      return blockingServerStreamingCall(
570          getChannel(), METHOD_LIST_RELEASES, getCallOptions(), request);
571    }
572
573    /**
574     * <pre>
575     * GetReleasesStatus retrieves status information for the specified release.
576     * </pre>
577     */
578    public hapi.services.tiller.Tiller.GetReleaseStatusResponse getReleaseStatus(hapi.services.tiller.Tiller.GetReleaseStatusRequest request) {
579      return blockingUnaryCall(
580          getChannel(), METHOD_GET_RELEASE_STATUS, getCallOptions(), request);
581    }
582
583    /**
584     * <pre>
585     * GetReleaseContent retrieves the release content (chart + value) for the specified release.
586     * </pre>
587     */
588    public hapi.services.tiller.Tiller.GetReleaseContentResponse getReleaseContent(hapi.services.tiller.Tiller.GetReleaseContentRequest request) {
589      return blockingUnaryCall(
590          getChannel(), METHOD_GET_RELEASE_CONTENT, getCallOptions(), request);
591    }
592
593    /**
594     * <pre>
595     * UpdateRelease updates release content.
596     * </pre>
597     */
598    public hapi.services.tiller.Tiller.UpdateReleaseResponse updateRelease(hapi.services.tiller.Tiller.UpdateReleaseRequest request) {
599      return blockingUnaryCall(
600          getChannel(), METHOD_UPDATE_RELEASE, getCallOptions(), request);
601    }
602
603    /**
604     * <pre>
605     * InstallRelease requests installation of a chart as a new release.
606     * </pre>
607     */
608    public hapi.services.tiller.Tiller.InstallReleaseResponse installRelease(hapi.services.tiller.Tiller.InstallReleaseRequest request) {
609      return blockingUnaryCall(
610          getChannel(), METHOD_INSTALL_RELEASE, getCallOptions(), request);
611    }
612
613    /**
614     * <pre>
615     * UninstallRelease requests deletion of a named release.
616     * </pre>
617     */
618    public hapi.services.tiller.Tiller.UninstallReleaseResponse uninstallRelease(hapi.services.tiller.Tiller.UninstallReleaseRequest request) {
619      return blockingUnaryCall(
620          getChannel(), METHOD_UNINSTALL_RELEASE, getCallOptions(), request);
621    }
622
623    /**
624     * <pre>
625     * GetVersion returns the current version of the server.
626     * </pre>
627     */
628    public hapi.services.tiller.Tiller.GetVersionResponse getVersion(hapi.services.tiller.Tiller.GetVersionRequest request) {
629      return blockingUnaryCall(
630          getChannel(), METHOD_GET_VERSION, getCallOptions(), request);
631    }
632
633    /**
634     * <pre>
635     * RollbackRelease rolls back a release to a previous version.
636     * </pre>
637     */
638    public hapi.services.tiller.Tiller.RollbackReleaseResponse rollbackRelease(hapi.services.tiller.Tiller.RollbackReleaseRequest request) {
639      return blockingUnaryCall(
640          getChannel(), METHOD_ROLLBACK_RELEASE, getCallOptions(), request);
641    }
642
643    /**
644     * <pre>
645     * ReleaseHistory retrieves a releasse's history.
646     * </pre>
647     */
648    public hapi.services.tiller.Tiller.GetHistoryResponse getHistory(hapi.services.tiller.Tiller.GetHistoryRequest request) {
649      return blockingUnaryCall(
650          getChannel(), METHOD_GET_HISTORY, getCallOptions(), request);
651    }
652
653    /**
654     * <pre>
655     * RunReleaseTest executes the tests defined of a named release
656     * </pre>
657     */
658    public java.util.Iterator<hapi.services.tiller.Tiller.TestReleaseResponse> runReleaseTest(
659        hapi.services.tiller.Tiller.TestReleaseRequest request) {
660      return blockingServerStreamingCall(
661          getChannel(), METHOD_RUN_RELEASE_TEST, getCallOptions(), request);
662    }
663  }
664
665  /**
666   * <pre>
667   * ReleaseService is the service that a helm application uses to mutate,
668   * query, and manage releases.
669   *    Release: A named installation composed of a chart and
670   *         config. At any given time a release has one
671   *         chart and one config.
672   *    Config:  A config is a YAML file that supplies values
673   *         to the parametrizable templates of a chart.
674   *    Chart:   A chart is a helm package that contains
675   *         metadata, a default config, zero or more
676   *         optionally parameterizable templates, and
677   *         zero or more charts (dependencies).
678   * </pre>
679   */
680  public static final class ReleaseServiceFutureStub extends io.grpc.stub.AbstractStub<ReleaseServiceFutureStub> {
681    private ReleaseServiceFutureStub(io.grpc.Channel channel) {
682      super(channel);
683    }
684
685    private ReleaseServiceFutureStub(io.grpc.Channel channel,
686        io.grpc.CallOptions callOptions) {
687      super(channel, callOptions);
688    }
689
690    @java.lang.Override
691    protected ReleaseServiceFutureStub build(io.grpc.Channel channel,
692        io.grpc.CallOptions callOptions) {
693      return new ReleaseServiceFutureStub(channel, callOptions);
694    }
695
696    /**
697     * <pre>
698     * GetReleasesStatus retrieves status information for the specified release.
699     * </pre>
700     */
701    public com.google.common.util.concurrent.ListenableFuture<hapi.services.tiller.Tiller.GetReleaseStatusResponse> getReleaseStatus(
702        hapi.services.tiller.Tiller.GetReleaseStatusRequest request) {
703      return futureUnaryCall(
704          getChannel().newCall(METHOD_GET_RELEASE_STATUS, getCallOptions()), request);
705    }
706
707    /**
708     * <pre>
709     * GetReleaseContent retrieves the release content (chart + value) for the specified release.
710     * </pre>
711     */
712    public com.google.common.util.concurrent.ListenableFuture<hapi.services.tiller.Tiller.GetReleaseContentResponse> getReleaseContent(
713        hapi.services.tiller.Tiller.GetReleaseContentRequest request) {
714      return futureUnaryCall(
715          getChannel().newCall(METHOD_GET_RELEASE_CONTENT, getCallOptions()), request);
716    }
717
718    /**
719     * <pre>
720     * UpdateRelease updates release content.
721     * </pre>
722     */
723    public com.google.common.util.concurrent.ListenableFuture<hapi.services.tiller.Tiller.UpdateReleaseResponse> updateRelease(
724        hapi.services.tiller.Tiller.UpdateReleaseRequest request) {
725      return futureUnaryCall(
726          getChannel().newCall(METHOD_UPDATE_RELEASE, getCallOptions()), request);
727    }
728
729    /**
730     * <pre>
731     * InstallRelease requests installation of a chart as a new release.
732     * </pre>
733     */
734    public com.google.common.util.concurrent.ListenableFuture<hapi.services.tiller.Tiller.InstallReleaseResponse> installRelease(
735        hapi.services.tiller.Tiller.InstallReleaseRequest request) {
736      return futureUnaryCall(
737          getChannel().newCall(METHOD_INSTALL_RELEASE, getCallOptions()), request);
738    }
739
740    /**
741     * <pre>
742     * UninstallRelease requests deletion of a named release.
743     * </pre>
744     */
745    public com.google.common.util.concurrent.ListenableFuture<hapi.services.tiller.Tiller.UninstallReleaseResponse> uninstallRelease(
746        hapi.services.tiller.Tiller.UninstallReleaseRequest request) {
747      return futureUnaryCall(
748          getChannel().newCall(METHOD_UNINSTALL_RELEASE, getCallOptions()), request);
749    }
750
751    /**
752     * <pre>
753     * GetVersion returns the current version of the server.
754     * </pre>
755     */
756    public com.google.common.util.concurrent.ListenableFuture<hapi.services.tiller.Tiller.GetVersionResponse> getVersion(
757        hapi.services.tiller.Tiller.GetVersionRequest request) {
758      return futureUnaryCall(
759          getChannel().newCall(METHOD_GET_VERSION, getCallOptions()), request);
760    }
761
762    /**
763     * <pre>
764     * RollbackRelease rolls back a release to a previous version.
765     * </pre>
766     */
767    public com.google.common.util.concurrent.ListenableFuture<hapi.services.tiller.Tiller.RollbackReleaseResponse> rollbackRelease(
768        hapi.services.tiller.Tiller.RollbackReleaseRequest request) {
769      return futureUnaryCall(
770          getChannel().newCall(METHOD_ROLLBACK_RELEASE, getCallOptions()), request);
771    }
772
773    /**
774     * <pre>
775     * ReleaseHistory retrieves a releasse's history.
776     * </pre>
777     */
778    public com.google.common.util.concurrent.ListenableFuture<hapi.services.tiller.Tiller.GetHistoryResponse> getHistory(
779        hapi.services.tiller.Tiller.GetHistoryRequest request) {
780      return futureUnaryCall(
781          getChannel().newCall(METHOD_GET_HISTORY, getCallOptions()), request);
782    }
783  }
784
785  private static final int METHODID_LIST_RELEASES = 0;
786  private static final int METHODID_GET_RELEASE_STATUS = 1;
787  private static final int METHODID_GET_RELEASE_CONTENT = 2;
788  private static final int METHODID_UPDATE_RELEASE = 3;
789  private static final int METHODID_INSTALL_RELEASE = 4;
790  private static final int METHODID_UNINSTALL_RELEASE = 5;
791  private static final int METHODID_GET_VERSION = 6;
792  private static final int METHODID_ROLLBACK_RELEASE = 7;
793  private static final int METHODID_GET_HISTORY = 8;
794  private static final int METHODID_RUN_RELEASE_TEST = 9;
795
796  private static final class MethodHandlers<Req, Resp> implements
797      io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
798      io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
799      io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
800      io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
801    private final ReleaseServiceImplBase serviceImpl;
802    private final int methodId;
803
804    MethodHandlers(ReleaseServiceImplBase serviceImpl, int methodId) {
805      this.serviceImpl = serviceImpl;
806      this.methodId = methodId;
807    }
808
809    @java.lang.Override
810    @java.lang.SuppressWarnings("unchecked")
811    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
812      switch (methodId) {
813        case METHODID_LIST_RELEASES:
814          serviceImpl.listReleases((hapi.services.tiller.Tiller.ListReleasesRequest) request,
815              (io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.ListReleasesResponse>) responseObserver);
816          break;
817        case METHODID_GET_RELEASE_STATUS:
818          serviceImpl.getReleaseStatus((hapi.services.tiller.Tiller.GetReleaseStatusRequest) request,
819              (io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.GetReleaseStatusResponse>) responseObserver);
820          break;
821        case METHODID_GET_RELEASE_CONTENT:
822          serviceImpl.getReleaseContent((hapi.services.tiller.Tiller.GetReleaseContentRequest) request,
823              (io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.GetReleaseContentResponse>) responseObserver);
824          break;
825        case METHODID_UPDATE_RELEASE:
826          serviceImpl.updateRelease((hapi.services.tiller.Tiller.UpdateReleaseRequest) request,
827              (io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.UpdateReleaseResponse>) responseObserver);
828          break;
829        case METHODID_INSTALL_RELEASE:
830          serviceImpl.installRelease((hapi.services.tiller.Tiller.InstallReleaseRequest) request,
831              (io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.InstallReleaseResponse>) responseObserver);
832          break;
833        case METHODID_UNINSTALL_RELEASE:
834          serviceImpl.uninstallRelease((hapi.services.tiller.Tiller.UninstallReleaseRequest) request,
835              (io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.UninstallReleaseResponse>) responseObserver);
836          break;
837        case METHODID_GET_VERSION:
838          serviceImpl.getVersion((hapi.services.tiller.Tiller.GetVersionRequest) request,
839              (io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.GetVersionResponse>) responseObserver);
840          break;
841        case METHODID_ROLLBACK_RELEASE:
842          serviceImpl.rollbackRelease((hapi.services.tiller.Tiller.RollbackReleaseRequest) request,
843              (io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.RollbackReleaseResponse>) responseObserver);
844          break;
845        case METHODID_GET_HISTORY:
846          serviceImpl.getHistory((hapi.services.tiller.Tiller.GetHistoryRequest) request,
847              (io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.GetHistoryResponse>) responseObserver);
848          break;
849        case METHODID_RUN_RELEASE_TEST:
850          serviceImpl.runReleaseTest((hapi.services.tiller.Tiller.TestReleaseRequest) request,
851              (io.grpc.stub.StreamObserver<hapi.services.tiller.Tiller.TestReleaseResponse>) responseObserver);
852          break;
853        default:
854          throw new AssertionError();
855      }
856    }
857
858    @java.lang.Override
859    @java.lang.SuppressWarnings("unchecked")
860    public io.grpc.stub.StreamObserver<Req> invoke(
861        io.grpc.stub.StreamObserver<Resp> responseObserver) {
862      switch (methodId) {
863        default:
864          throw new AssertionError();
865      }
866    }
867  }
868
869  private static final class ReleaseServiceDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier {
870    @java.lang.Override
871    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
872      return hapi.services.tiller.Tiller.getDescriptor();
873    }
874  }
875
876  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
877
878  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
879    io.grpc.ServiceDescriptor result = serviceDescriptor;
880    if (result == null) {
881      synchronized (ReleaseServiceGrpc.class) {
882        result = serviceDescriptor;
883        if (result == null) {
884          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
885              .setSchemaDescriptor(new ReleaseServiceDescriptorSupplier())
886              .addMethod(METHOD_LIST_RELEASES)
887              .addMethod(METHOD_GET_RELEASE_STATUS)
888              .addMethod(METHOD_GET_RELEASE_CONTENT)
889              .addMethod(METHOD_UPDATE_RELEASE)
890              .addMethod(METHOD_INSTALL_RELEASE)
891              .addMethod(METHOD_UNINSTALL_RELEASE)
892              .addMethod(METHOD_GET_VERSION)
893              .addMethod(METHOD_ROLLBACK_RELEASE)
894              .addMethod(METHOD_GET_HISTORY)
895              .addMethod(METHOD_RUN_RELEASE_TEST)
896              .build();
897        }
898      }
899    }
900    return result;
901  }
902}