diff --git a/src/main/java/bdchain/api/grpc/AccountingChainGrpc.java b/src/main/java/bdchain/api/grpc/AccountingChainGrpc.java index e83b88a..4daa5f6 100644 --- a/src/main/java/bdchain/api/grpc/AccountingChainGrpc.java +++ b/src/main/java/bdchain/api/grpc/AccountingChainGrpc.java @@ -124,21 +124,21 @@ public final class AccountingChainGrpc { } private static volatile io.grpc.MethodDescriptor getGetTransactionByHashMethod; + bdchain.api.grpc.Transaction> getGetTransactionByHashMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetTransactionByHash", requestType = bdchain.api.grpc.GetTransactionByHashRequest.class, - responseType = bdchain.api.grpc.Block.class, + responseType = bdchain.api.grpc.Transaction.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetTransactionByHashMethod() { - io.grpc.MethodDescriptor getGetTransactionByHashMethod; + bdchain.api.grpc.Transaction> getGetTransactionByHashMethod() { + io.grpc.MethodDescriptor getGetTransactionByHashMethod; if ((getGetTransactionByHashMethod = AccountingChainGrpc.getGetTransactionByHashMethod) == null) { synchronized (AccountingChainGrpc.class) { if ((getGetTransactionByHashMethod = AccountingChainGrpc.getGetTransactionByHashMethod) == null) { AccountingChainGrpc.getGetTransactionByHashMethod = getGetTransactionByHashMethod = - io.grpc.MethodDescriptor.newBuilder() + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "bdchain.api.AccountingChain", "GetTransactionByHash")) @@ -146,7 +146,7 @@ public final class AccountingChainGrpc { .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( bdchain.api.grpc.GetTransactionByHashRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - bdchain.api.grpc.Block.getDefaultInstance())) + bdchain.api.grpc.Transaction.getDefaultInstance())) .setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetTransactionByHash")) .build(); } @@ -270,7 +270,7 @@ public final class AccountingChainGrpc { /** */ public void getTransactionByHash(bdchain.api.grpc.GetTransactionByHashRequest request, - io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getGetTransactionByHashMethod(), responseObserver); } @@ -316,7 +316,7 @@ public final class AccountingChainGrpc { asyncUnaryCall( new MethodHandlers< bdchain.api.grpc.GetTransactionByHashRequest, - bdchain.api.grpc.Block>( + bdchain.api.grpc.Transaction>( this, METHODID_GET_TRANSACTION_BY_HASH))) .addMethod( getGetTransactionByBlockNumberAndIndexMethod(), @@ -381,7 +381,7 @@ public final class AccountingChainGrpc { /** */ public void getTransactionByHash(bdchain.api.grpc.GetTransactionByHashRequest request, - io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getGetTransactionByHashMethod(), getCallOptions()), request, responseObserver); } @@ -444,7 +444,7 @@ public final class AccountingChainGrpc { /** */ - public bdchain.api.grpc.Block getTransactionByHash(bdchain.api.grpc.GetTransactionByHashRequest request) { + public bdchain.api.grpc.Transaction getTransactionByHash(bdchain.api.grpc.GetTransactionByHashRequest request) { return blockingUnaryCall( getChannel(), getGetTransactionByHashMethod(), getCallOptions(), request); } @@ -508,7 +508,7 @@ public final class AccountingChainGrpc { /** */ - public com.google.common.util.concurrent.ListenableFuture getTransactionByHash( + public com.google.common.util.concurrent.ListenableFuture getTransactionByHash( bdchain.api.grpc.GetTransactionByHashRequest request) { return futureUnaryCall( getChannel().newCall(getGetTransactionByHashMethod(), getCallOptions()), request); @@ -569,7 +569,7 @@ public final class AccountingChainGrpc { break; case METHODID_GET_TRANSACTION_BY_HASH: serviceImpl.getTransactionByHash((bdchain.api.grpc.GetTransactionByHashRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_TRANSACTION_BY_BLOCK_NUMBER_AND_INDEX: serviceImpl.getTransactionByBlockNumberAndIndex((bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest) request, diff --git a/src/main/java/bdchain/api/grpc/AccountingChainProto.java b/src/main/java/bdchain/api/grpc/AccountingChainProto.java index d20a014..d39e2f3 100644 --- a/src/main/java/bdchain/api/grpc/AccountingChainProto.java +++ b/src/main/java/bdchain/api/grpc/AccountingChainProto.java @@ -93,23 +93,23 @@ public final class AccountingChainProto { "k_number\030\002 \001(\004\022\r\n\005index\030\003 \001(\r\"]\n(GetTran" + "sactionByBlockHashAndIndexRequest\022\016\n\006led" + "ger\030\001 \001(\t\022\022\n\nblock_hash\030\002 \001(\014\022\r\n\005index\030\003" + - " \001(\r2\301\004\n\017AccountingChain\022P\n\013BlockNumber\022" + + " \001(\r2\307\004\n\017AccountingChain\022P\n\013BlockNumber\022" + "\037.bdchain.api.BlockNumberRequest\032 .bdcha" + "in.api.BlockNumberResponse\022L\n\020GetBlockBy" + "Number\022$.bdchain.api.GetBlockByNumberReq" + "uest\032\022.bdchain.api.Block\022H\n\016GetBlockByHa" + "sh\022\".bdchain.api.GetBlockByHashRequest\032\022" + - ".bdchain.api.Block\022T\n\024GetTransactionByHa" + + ".bdchain.api.Block\022Z\n\024GetTransactionByHa" + "sh\022(.bdchain.api.GetTransactionByHashReq" + - "uest\032\022.bdchain.api.Block\022x\n#GetTransacti" + - "onByBlockNumberAndIndex\0227.bdchain.api.Ge" + - "tTransactionByBlockNumberAndIndexRequest" + - "\032\030.bdchain.api.Transaction\022t\n!GetTransac" + - "tionByBlockHashAndIndex\0225.bdchain.api.Ge" + - "tTransactionByBlockHashAndIndexRequest\032\030" + - ".bdchain.api.TransactionB@\n\020bdchain.api." + - "grpcB\024AccountingChainProtoP\001Z\024bdchain/ap" + - "i/ac_chainb\006proto3" + "uest\032\030.bdchain.api.Transaction\022x\n#GetTra" + + "nsactionByBlockNumberAndIndex\0227.bdchain." + + "api.GetTransactionByBlockNumberAndIndexR" + + "equest\032\030.bdchain.api.Transaction\022t\n!GetT" + + "ransactionByBlockHashAndIndex\0225.bdchain." + + "api.GetTransactionByBlockHashAndIndexReq" + + "uest\032\030.bdchain.api.TransactionB@\n\020bdchai" + + "n.api.grpcB\024AccountingChainProtoP\001Z\024bdch" + + "ain/api/ac_chainb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {