Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.15.0)",
comments = "Source: peer/events.proto")
public final class EventsGrpc {
private EventsGrpc() {}
public static final String SERVICE_NAME = "protos.Events";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getChatMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Chat",
requestType = org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent.class,
responseType = org.hyperledger.fabric.protos.peer.PeerEvents.Event.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getChatMethod() {
io.grpc.MethodDescriptor getChatMethod;
if ((getChatMethod = EventsGrpc.getChatMethod) == null) {
synchronized (EventsGrpc.class) {
if ((getChatMethod = EventsGrpc.getChatMethod) == null) {
EventsGrpc.getChatMethod = getChatMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(
"protos.Events", "Chat"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.hyperledger.fabric.protos.peer.PeerEvents.Event.getDefaultInstance()))
.setSchemaDescriptor(new EventsMethodDescriptorSupplier("Chat"))
.build();
}
}
}
return getChatMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static EventsStub newStub(io.grpc.Channel channel) {
return new EventsStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static EventsBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new EventsBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static EventsFutureStub newFutureStub(
io.grpc.Channel channel) {
return new EventsFutureStub(channel);
}
/**
*
* Interface exported by the events server
*
*/
public static abstract class EventsImplBase implements io.grpc.BindableService {
/**
*
* event chatting using Event
*
*/
public io.grpc.stub.StreamObserver chat(
io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getChatMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getChatMethod(),
asyncBidiStreamingCall(
new MethodHandlers<
org.hyperledger.fabric.protos.peer.PeerEvents.SignedEvent,
org.hyperledger.fabric.protos.peer.PeerEvents.Event>(
this, METHODID_CHAT)))
.build();
}
}
/**
*
* Interface exported by the events server
*
*/
public static final class EventsStub extends io.grpc.stub.AbstractStub {
private EventsStub(io.grpc.Channel channel) {
super(channel);
}
private EventsStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected EventsStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new EventsStub(channel, callOptions);
}
/**
*