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

org.hyperledger.protos.TLSCAAGrpc Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
package org.hyperledger.protos;

import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;

/**
 * 
 * admin service
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 0.15.0)", comments = "Source: ca/ca.proto") public class TLSCAAGrpc { private TLSCAAGrpc() {} public static final String SERVICE_NAME = "protos.TLSCAA"; // Static method descriptors that strictly reflect the proto. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static final io.grpc.MethodDescriptor METHOD_REVOKE_CERTIFICATE = io.grpc.MethodDescriptor.create( io.grpc.MethodDescriptor.MethodType.UNARY, generateFullMethodName( "protos.TLSCAA", "RevokeCertificate"), io.grpc.protobuf.ProtoUtils.marshaller(org.hyperledger.protos.Ca.TLSCertRevokeReq.getDefaultInstance()), io.grpc.protobuf.ProtoUtils.marshaller(org.hyperledger.protos.Ca.CAStatus.getDefaultInstance())); /** * Creates a new async stub that supports all call types for the service */ public static TLSCAAStub newStub(io.grpc.Channel channel) { return new TLSCAAStub(channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static TLSCAABlockingStub newBlockingStub( io.grpc.Channel channel) { return new TLSCAABlockingStub(channel); } /** * Creates a new ListenableFuture-style stub that supports unary and streaming output calls on the service */ public static TLSCAAFutureStub newFutureStub( io.grpc.Channel channel) { return new TLSCAAFutureStub(channel); } /** *
   * admin service
   * 
*/ @java.lang.Deprecated public static interface TLSCAA { /** *
     * an admin can revoke any cert
     * 
*/ public void revokeCertificate(org.hyperledger.protos.Ca.TLSCertRevokeReq request, io.grpc.stub.StreamObserver responseObserver); } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1469") public static abstract class TLSCAAImplBase implements TLSCAA, io.grpc.BindableService { @java.lang.Override public void revokeCertificate(org.hyperledger.protos.Ca.TLSCertRevokeReq request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_REVOKE_CERTIFICATE, responseObserver); } @java.lang.Override public io.grpc.ServerServiceDefinition bindService() { return TLSCAAGrpc.bindService(this); } } /** *
   * admin service
   * 
*/ @java.lang.Deprecated public static interface TLSCAABlockingClient { /** *
     * an admin can revoke any cert
     * 
*/ public org.hyperledger.protos.Ca.CAStatus revokeCertificate(org.hyperledger.protos.Ca.TLSCertRevokeReq request); } /** *
   * admin service
   * 
*/ @java.lang.Deprecated public static interface TLSCAAFutureClient { /** *
     * an admin can revoke any cert
     * 
*/ public com.google.common.util.concurrent.ListenableFuture revokeCertificate( org.hyperledger.protos.Ca.TLSCertRevokeReq request); } public static class TLSCAAStub extends io.grpc.stub.AbstractStub implements TLSCAA { private TLSCAAStub(io.grpc.Channel channel) { super(channel); } private TLSCAAStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TLSCAAStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TLSCAAStub(channel, callOptions); } @java.lang.Override public void revokeCertificate(org.hyperledger.protos.Ca.TLSCertRevokeReq request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_REVOKE_CERTIFICATE, getCallOptions()), request, responseObserver); } } public static class TLSCAABlockingStub extends io.grpc.stub.AbstractStub implements TLSCAABlockingClient { private TLSCAABlockingStub(io.grpc.Channel channel) { super(channel); } private TLSCAABlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TLSCAABlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TLSCAABlockingStub(channel, callOptions); } @java.lang.Override public org.hyperledger.protos.Ca.CAStatus revokeCertificate(org.hyperledger.protos.Ca.TLSCertRevokeReq request) { return blockingUnaryCall( getChannel(), METHOD_REVOKE_CERTIFICATE, getCallOptions(), request); } } public static class TLSCAAFutureStub extends io.grpc.stub.AbstractStub implements TLSCAAFutureClient { private TLSCAAFutureStub(io.grpc.Channel channel) { super(channel); } private TLSCAAFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TLSCAAFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TLSCAAFutureStub(channel, callOptions); } @java.lang.Override public com.google.common.util.concurrent.ListenableFuture revokeCertificate( org.hyperledger.protos.Ca.TLSCertRevokeReq request) { return futureUnaryCall( getChannel().newCall(METHOD_REVOKE_CERTIFICATE, getCallOptions()), request); } } @java.lang.Deprecated public static abstract class AbstractTLSCAA extends TLSCAAImplBase {} private static final int METHODID_REVOKE_CERTIFICATE = 0; private static class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final TLSCAA serviceImpl; private final int methodId; public MethodHandlers(TLSCAA serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_REVOKE_CERTIFICATE: serviceImpl.revokeCertificate((org.hyperledger.protos.Ca.TLSCertRevokeReq) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } public static io.grpc.ServiceDescriptor getServiceDescriptor() { return new io.grpc.ServiceDescriptor(SERVICE_NAME, METHOD_REVOKE_CERTIFICATE); } @java.lang.Deprecated public static io.grpc.ServerServiceDefinition bindService( final TLSCAA serviceImpl) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( METHOD_REVOKE_CERTIFICATE, asyncUnaryCall( new MethodHandlers< org.hyperledger.protos.Ca.TLSCertRevokeReq, org.hyperledger.protos.Ca.CAStatus>( serviceImpl, METHODID_REVOKE_CERTIFICATE))) .build(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy