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

com.hederahashgraph.service.proto.java.FreezeServiceGrpc Maven / Gradle / Ivy

There is a newer version: 0.54.0
Show newest version
package com.hederahashgraph.service.proto.java;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 **
 * The request and responses for freeze service.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.45.1)", comments = "Source: freeze_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FreezeServiceGrpc { private FreezeServiceGrpc() {} public static final String SERVICE_NAME = "proto.FreezeService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getFreezeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "freeze", requestType = com.hederahashgraph.api.proto.java.Transaction.class, responseType = com.hederahashgraph.api.proto.java.TransactionResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getFreezeMethod() { io.grpc.MethodDescriptor getFreezeMethod; if ((getFreezeMethod = FreezeServiceGrpc.getFreezeMethod) == null) { synchronized (FreezeServiceGrpc.class) { if ((getFreezeMethod = FreezeServiceGrpc.getFreezeMethod) == null) { FreezeServiceGrpc.getFreezeMethod = getFreezeMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "freeze")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.hederahashgraph.api.proto.java.Transaction.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.hederahashgraph.api.proto.java.TransactionResponse.getDefaultInstance())) .setSchemaDescriptor(new FreezeServiceMethodDescriptorSupplier("freeze")) .build(); } } } return getFreezeMethod; } /** * Creates a new async stub that supports all call types for the service */ public static FreezeServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public FreezeServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FreezeServiceStub(channel, callOptions); } }; return FreezeServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static FreezeServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public FreezeServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FreezeServiceBlockingStub(channel, callOptions); } }; return FreezeServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static FreezeServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public FreezeServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FreezeServiceFutureStub(channel, callOptions); } }; return FreezeServiceFutureStub.newStub(factory, channel); } /** *
   **
   * The request and responses for freeze service.
   * 
*/ public static abstract class FreezeServiceImplBase implements io.grpc.BindableService { /** *
     **
     * Freezes the nodes by submitting the transaction. The grpc server returns the
     * TransactionResponse
     * 
*/ public void freeze(com.hederahashgraph.api.proto.java.Transaction request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFreezeMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getFreezeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.hederahashgraph.api.proto.java.Transaction, com.hederahashgraph.api.proto.java.TransactionResponse>( this, METHODID_FREEZE))) .build(); } } /** *
   **
   * The request and responses for freeze service.
   * 
*/ public static final class FreezeServiceStub extends io.grpc.stub.AbstractAsyncStub { private FreezeServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected FreezeServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FreezeServiceStub(channel, callOptions); } /** *
     **
     * Freezes the nodes by submitting the transaction. The grpc server returns the
     * TransactionResponse
     * 
*/ public void freeze(com.hederahashgraph.api.proto.java.Transaction request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getFreezeMethod(), getCallOptions()), request, responseObserver); } } /** *
   **
   * The request and responses for freeze service.
   * 
*/ public static final class FreezeServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private FreezeServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected FreezeServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FreezeServiceBlockingStub(channel, callOptions); } /** *
     **
     * Freezes the nodes by submitting the transaction. The grpc server returns the
     * TransactionResponse
     * 
*/ public com.hederahashgraph.api.proto.java.TransactionResponse freeze(com.hederahashgraph.api.proto.java.Transaction request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFreezeMethod(), getCallOptions(), request); } } /** *
   **
   * The request and responses for freeze service.
   * 
*/ public static final class FreezeServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private FreezeServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected FreezeServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new FreezeServiceFutureStub(channel, callOptions); } /** *
     **
     * Freezes the nodes by submitting the transaction. The grpc server returns the
     * TransactionResponse
     * 
*/ public com.google.common.util.concurrent.ListenableFuture freeze( com.hederahashgraph.api.proto.java.Transaction request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFreezeMethod(), getCallOptions()), request); } } private static final int METHODID_FREEZE = 0; private static final 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 FreezeServiceImplBase serviceImpl; private final int methodId; MethodHandlers(FreezeServiceImplBase 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_FREEZE: serviceImpl.freeze((com.hederahashgraph.api.proto.java.Transaction) 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(); } } } private static abstract class FreezeServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { FreezeServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.hederahashgraph.service.proto.java.FreezeServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("FreezeService"); } } private static final class FreezeServiceFileDescriptorSupplier extends FreezeServiceBaseDescriptorSupplier { FreezeServiceFileDescriptorSupplier() {} } private static final class FreezeServiceMethodDescriptorSupplier extends FreezeServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; FreezeServiceMethodDescriptorSupplier(String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (FreezeServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new FreezeServiceFileDescriptorSupplier()) .addMethod(getFreezeMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy