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

com.hedera.hashgraph.sdk.proto.FreezeServiceGrpc Maven / Gradle / Ivy

There is a newer version: 2.39.0
Show newest version
package com.hedera.hashgraph.sdk.proto;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 **
 * The request and responses for freeze service.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.58.0)", comments = "Source: freeze_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class FreezeServiceGrpc { private FreezeServiceGrpc() {} public static final java.lang.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.hedera.hashgraph.sdk.proto.Transaction.class, responseType = com.hedera.hashgraph.sdk.proto.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.lite.ProtoLiteUtils.marshaller( com.hedera.hashgraph.sdk.proto.Transaction.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( com.hedera.hashgraph.sdk.proto.TransactionResponse.getDefaultInstance())) .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 interface AsyncService { /** *
     **
     * Freezes the nodes by submitting the transaction. The grpc server returns the
     * TransactionResponse
     * 
*/ default void freeze(com.hedera.hashgraph.sdk.proto.Transaction request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFreezeMethod(), responseObserver); } } /** * Base class for the server implementation of the service FreezeService. *
   **
   * The request and responses for freeze service.
   * 
*/ public static abstract class FreezeServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return FreezeServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service FreezeService. *
   **
   * 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.hedera.hashgraph.sdk.proto.Transaction request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getFreezeMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service FreezeService. *
   **
   * 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.hedera.hashgraph.sdk.proto.TransactionResponse freeze(com.hedera.hashgraph.sdk.proto.Transaction request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFreezeMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service FreezeService. *
   **
   * 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.hedera.hashgraph.sdk.proto.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 AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService 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.hedera.hashgraph.sdk.proto.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(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getFreezeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.hedera.hashgraph.sdk.proto.Transaction, com.hedera.hashgraph.sdk.proto.TransactionResponse>( service, METHODID_FREEZE))) .build(); } 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) .addMethod(getFreezeMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy