Update gRPC API

This commit is contained in:
Nex 2019-04-23 15:58:21 +08:00
parent 8da008098c
commit a0ab8ad611
61 changed files with 8465 additions and 2160 deletions

View File

@ -1,8 +1,9 @@
package bdchain.api;
import bdchain.api.grpc.*;
import bdchain.api.grpc.AccountingChainGrpc.AccountingChainBlockingStub;
import bdchain.api.grpc.AccountingChainGrpc.AccountingChainFutureStub;
import bdchain.api.grpc.acchain.*;
import bdchain.api.grpc.acchain.AccountingChainGrpc.AccountingChainBlockingStub;
import bdchain.api.grpc.acchain.AccountingChainGrpc.AccountingChainFutureStub;
import bdchain.api.grpc.common.ClientVersionResponse;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.protobuf.ByteString;
import com.google.protobuf.Empty;
@ -14,12 +15,12 @@ import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logger;
// import bdchain.api.grpc.AccountingChainGrpc.AccountingChainStub;
// import bdchain.api.grpc.acchain.AccountingChainGrpc.AccountingChainStub;
/**
* 记账链客户端
*
* <p>如有更灵活的需求可直接使用{@link bdchain.api.grpc.AccountingChainGrpc}
* <p>如有更灵活的需求可直接使用{@link bdchain.api.grpc.acchain.AccountingChainGrpc}
*
* @see <a href="https://phabricator.internetapi.cn/w/public/bdchain/grpc-api/#api-1">记账链API</a>
* @author nex

View File

@ -1,8 +1,11 @@
package bdchain.api;
import bdchain.api.grpc.*;
import bdchain.api.grpc.TransactionLedgerGrpc.TransactionLedgerBlockingStub;
import bdchain.api.grpc.TransactionLedgerGrpc.TransactionLedgerFutureStub;
import bdchain.api.grpc.common.ClientVersionResponse;
import bdchain.api.grpc.common.TransactionType;
import bdchain.api.grpc.txledger.*;
import bdchain.api.grpc.txledger.TransactionLedgerGrpc.TransactionLedgerBlockingStub;
import bdchain.api.grpc.txledger.TransactionLedgerGrpc.TransactionLedgerFutureStub;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.protobuf.ByteString;
import com.google.protobuf.Empty;
@ -14,12 +17,12 @@ import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logger;
// import bdchain.api.grpc.TransactionLedgerGrpc.TransactionLedgerStub;
// import bdchain.api.grpc.txledger.TransactionLedgerGrpc.TransactionLedgerStub;
/**
* 事务账本客户端
*
* <p>如有更灵活的需求可直接使用{@link bdchain.api.grpc.TransactionLedgerGrpc}
* <p>如有更灵活的需求可直接使用{@link bdchain.api.grpc.txledger.TransactionLedgerGrpc}
*
* @see <a href="https://phabricator.internetapi.cn/w/public/bdchain/grpc-api/#api">事务账本API</a>
* @author nex

View File

@ -1,190 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
public final class AccountingChainProto {
private AccountingChainProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_Transaction_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_Transaction_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_Block_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_Block_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_BlockNumberRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_BlockNumberRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_BlockNumberResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_BlockNumberResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_GetBlockByNumberRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_GetBlockByNumberRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_GetBlockByHashRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_GetBlockByHashRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_GetTransactionByHashRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_GetTransactionByHashRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_GetTransactionByBlockNumberAndIndexRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_GetTransactionByBlockNumberAndIndexRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_GetTransactionByBlockHashAndIndexRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\032bdchain/api/ac_chain.proto\022\013bdchain.ap" +
"i\032\033google/protobuf/empty.proto\032\030bdchain/" +
"api/common.proto\"\330\001\n\013Transaction\022\024\n\014bloc" +
"k_number\030\001 \001(\004\022\022\n\nblock_hash\030\002 \001(\014\022\r\n\005in" +
"dex\030\003 \001(\r\022\014\n\004hash\030\004 \001(\014\022*\n\004type\030\005 \001(\0162\034." +
"bdchain.api.TransactionType\022\014\n\004from\030\006 \001(" +
"\014\022\r\n\005nonce\030\007 \001(\004\022\n\n\002to\030\010 \001(\014\022\014\n\004data\030\t \001" +
"(\014\022\t\n\001v\030\n \001(\014\022\t\n\001r\030\013 \001(\014\022\t\n\001s\030\014 \001(\014\"\323\001\n\005" +
"Block\022\016\n\006number\030\001 \001(\004\022\014\n\004hash\030\002 \001(\014\022\023\n\013p" +
"arent_hash\030\003 \001(\014\022\017\n\007witness\030\004 \001(\014\022\021\n\ttim" +
"estamp\030\005 \001(\004\022\014\n\004size\030\006 \001(\004\022\031\n\021transactio" +
"ns_root\030\007 \001(\014\022.\n\014transactions\030\010 \003(\0132\030.bd" +
"chain.api.Transaction\022\032\n\022transaction_has" +
"hes\030\t \003(\014\"$\n\022BlockNumberRequest\022\016\n\006ledge" +
"r\030\001 \001(\t\"+\n\023BlockNumberResponse\022\024\n\014block_" +
"number\030\001 \001(\004\"S\n\027GetBlockByNumberRequest\022" +
"\016\n\006ledger\030\001 \001(\t\022\016\n\006number\030\002 \001(\004\022\030\n\020full_" +
"transaction\030\003 \001(\010\"O\n\025GetBlockByHashReque" +
"st\022\016\n\006ledger\030\001 \001(\t\022\014\n\004hash\030\002 \001(\014\022\030\n\020full" +
"_transaction\030\003 \001(\010\";\n\033GetTransactionByHa" +
"shRequest\022\016\n\006ledger\030\001 \001(\t\022\014\n\004hash\030\002 \001(\014\"" +
"a\n*GetTransactionByBlockNumberAndIndexRe" +
"quest\022\016\n\006ledger\030\001 \001(\t\022\024\n\014block_number\030\002 " +
"\001(\004\022\r\n\005index\030\003 \001(\r\"]\n(GetTransactionByBl" +
"ockHashAndIndexRequest\022\016\n\006ledger\030\001 \001(\t\022\022" +
"\n\nblock_hash\030\002 \001(\014\022\r\n\005index\030\003 \001(\r2\224\005\n\017Ac" +
"countingChain\022K\n\rClientVersion\022\026.google." +
"protobuf.Empty\032\".bdchain.api.ClientVersi" +
"onResponse\022P\n\013BlockNumber\022\037.bdchain.api." +
"BlockNumberRequest\032 .bdchain.api.BlockNu" +
"mberResponse\022L\n\020GetBlockByNumber\022$.bdcha" +
"in.api.GetBlockByNumberRequest\032\022.bdchain" +
".api.Block\022H\n\016GetBlockByHash\022\".bdchain.a" +
"pi.GetBlockByHashRequest\032\022.bdchain.api.B" +
"lock\022Z\n\024GetTransactionByHash\022(.bdchain.a" +
"pi.GetTransactionByHashRequest\032\030.bdchain" +
".api.Transaction\022x\n#GetTransactionByBloc" +
"kNumberAndIndex\0227.bdchain.api.GetTransac" +
"tionByBlockNumberAndIndexRequest\032\030.bdcha" +
"in.api.Transaction\022t\n!GetTransactionByBl" +
"ockHashAndIndex\0225.bdchain.api.GetTransac" +
"tionByBlockHashAndIndexRequest\032\030.bdchain" +
".api.TransactionBH\n\020bdchain.api.grpcB\024Ac" +
"countingChainProtoP\001Z\034bdchain/sdk/api/gr" +
"pc/acchainb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.EmptyProto.getDescriptor(),
bdchain.api.grpc.CommonProto.getDescriptor(),
}, assigner);
internal_static_bdchain_api_Transaction_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_bdchain_api_Transaction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_Transaction_descriptor,
new java.lang.String[] { "BlockNumber", "BlockHash", "Index", "Hash", "Type", "From", "Nonce", "To", "Data", "V", "R", "S", });
internal_static_bdchain_api_Block_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_bdchain_api_Block_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_Block_descriptor,
new java.lang.String[] { "Number", "Hash", "ParentHash", "Witness", "Timestamp", "Size", "TransactionsRoot", "Transactions", "TransactionHashes", });
internal_static_bdchain_api_BlockNumberRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_bdchain_api_BlockNumberRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_BlockNumberRequest_descriptor,
new java.lang.String[] { "Ledger", });
internal_static_bdchain_api_BlockNumberResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_bdchain_api_BlockNumberResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_BlockNumberResponse_descriptor,
new java.lang.String[] { "BlockNumber", });
internal_static_bdchain_api_GetBlockByNumberRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_bdchain_api_GetBlockByNumberRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_GetBlockByNumberRequest_descriptor,
new java.lang.String[] { "Ledger", "Number", "FullTransaction", });
internal_static_bdchain_api_GetBlockByHashRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_bdchain_api_GetBlockByHashRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_GetBlockByHashRequest_descriptor,
new java.lang.String[] { "Ledger", "Hash", "FullTransaction", });
internal_static_bdchain_api_GetTransactionByHashRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_bdchain_api_GetTransactionByHashRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_GetTransactionByHashRequest_descriptor,
new java.lang.String[] { "Ledger", "Hash", });
internal_static_bdchain_api_GetTransactionByBlockNumberAndIndexRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_bdchain_api_GetTransactionByBlockNumberAndIndexRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_GetTransactionByBlockNumberAndIndexRequest_descriptor,
new java.lang.String[] { "Ledger", "BlockNumber", "Index", });
internal_static_bdchain_api_GetTransactionByBlockHashAndIndexRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_bdchain_api_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_GetTransactionByBlockHashAndIndexRequest_descriptor,
new java.lang.String[] { "Ledger", "BlockHash", "Index", });
com.google.protobuf.EmptyProto.getDescriptor();
bdchain.api.grpc.CommonProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,53 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/error_details.proto
package bdchain.api.grpc;
public interface InvalidArgumentOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.InvalidArgument)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
java.util.List<bdchain.api.grpc.InvalidArgument.FieldViolation>
getFieldViolationsList();
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
bdchain.api.grpc.InvalidArgument.FieldViolation getFieldViolations(int index);
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
int getFieldViolationsCount();
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
java.util.List<? extends bdchain.api.grpc.InvalidArgument.FieldViolationOrBuilder>
getFieldViolationsOrBuilderList();
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
bdchain.api.grpc.InvalidArgument.FieldViolationOrBuilder getFieldViolationsOrBuilder(
int index);
}

View File

@ -1,32 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc;
public interface SendTransactionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.SendTransactionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string ledger = 1;</code>
*/
java.lang.String getLedger();
/**
* <code>string ledger = 1;</code>
*/
com.google.protobuf.ByteString
getLedgerBytes();
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
*/
boolean hasTransaction();
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
*/
bdchain.api.grpc.SendTransactionRequest.Transaction getTransaction();
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
*/
bdchain.api.grpc.SendTransactionRequest.TransactionOrBuilder getTransactionOrBuilder();
}

View File

@ -1,135 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc;
public final class TransactionLedgerProto {
private TransactionLedgerProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_CreateLedgerRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_CreateLedgerRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_CreateLedgerResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_CreateLedgerResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_GetLedgersResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_GetLedgersResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_SendTransactionRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_SendTransactionRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_SendTransactionRequest_Transaction_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_SendTransactionRequest_Transaction_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_SendTransactionResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_SendTransactionResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\033bdchain/api/tx_ledger.proto\022\013bdchain.a" +
"pi\032\033google/protobuf/empty.proto\032\030bdchain" +
"/api/common.proto\"#\n\023CreateLedgerRequest" +
"\022\014\n\004name\030\001 \001(\t\"\"\n\024CreateLedgerResponse\022\n" +
"\n\002ok\030\001 \001(\010\"%\n\022GetLedgersResponse\022\017\n\007ledg" +
"ers\030\001 \003(\t\"\321\001\n\026SendTransactionRequest\022\016\n\006" +
"ledger\030\001 \001(\t\022D\n\013transaction\030\002 \001(\0132/.bdch" +
"ain.api.SendTransactionRequest.Transacti" +
"on\032a\n\013Transaction\022*\n\004type\030\001 \001(\0162\034.bdchai" +
"n.api.TransactionType\022\014\n\004from\030\002 \001(\014\022\n\n\002t" +
"o\030\003 \001(\014\022\014\n\004data\030\004 \001(\014\"\'\n\027SendTransaction" +
"Response\022\014\n\004hash\030\001 \001(\0142\332\002\n\021TransactionLe" +
"dger\022K\n\rClientVersion\022\026.google.protobuf." +
"Empty\032\".bdchain.api.ClientVersionRespons" +
"e\022S\n\014CreateLedger\022 .bdchain.api.CreateLe" +
"dgerRequest\032!.bdchain.api.CreateLedgerRe" +
"sponse\022E\n\nGetLedgers\022\026.google.protobuf.E" +
"mpty\032\037.bdchain.api.GetLedgersResponse\022\\\n" +
"\017SendTransaction\022#.bdchain.api.SendTrans" +
"actionRequest\032$.bdchain.api.SendTransact" +
"ionResponseBK\n\020bdchain.api.grpcB\026Transac" +
"tionLedgerProtoP\001Z\035bdchain/sdk/api/grpc/" +
"txledgerb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.EmptyProto.getDescriptor(),
bdchain.api.grpc.CommonProto.getDescriptor(),
}, assigner);
internal_static_bdchain_api_CreateLedgerRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_bdchain_api_CreateLedgerRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_CreateLedgerRequest_descriptor,
new java.lang.String[] { "Name", });
internal_static_bdchain_api_CreateLedgerResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_bdchain_api_CreateLedgerResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_CreateLedgerResponse_descriptor,
new java.lang.String[] { "Ok", });
internal_static_bdchain_api_GetLedgersResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_bdchain_api_GetLedgersResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_GetLedgersResponse_descriptor,
new java.lang.String[] { "Ledgers", });
internal_static_bdchain_api_SendTransactionRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_bdchain_api_SendTransactionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_SendTransactionRequest_descriptor,
new java.lang.String[] { "Ledger", "Transaction", });
internal_static_bdchain_api_SendTransactionRequest_Transaction_descriptor =
internal_static_bdchain_api_SendTransactionRequest_descriptor.getNestedTypes().get(0);
internal_static_bdchain_api_SendTransactionRequest_Transaction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_SendTransactionRequest_Transaction_descriptor,
new java.lang.String[] { "Type", "From", "To", "Data", });
internal_static_bdchain_api_SendTransactionResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_bdchain_api_SendTransactionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_SendTransactionResponse_descriptor,
new java.lang.String[] { "Hash", });
com.google.protobuf.EmptyProto.getDescriptor();
bdchain.api.grpc.CommonProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,4 +1,4 @@
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
@ -18,39 +18,39 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.15.0)",
value = "by gRPC proto compiler (version 1.20.0)",
comments = "Source: bdchain/api/ac_chain.proto")
public final class AccountingChainGrpc {
private AccountingChainGrpc() {}
public static final String SERVICE_NAME = "bdchain.api.AccountingChain";
public static final String SERVICE_NAME = "bdchain.api.acchain.AccountingChain";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<com.google.protobuf.Empty,
bdchain.api.grpc.ClientVersionResponse> getClientVersionMethod;
bdchain.api.grpc.common.ClientVersionResponse> getClientVersionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ClientVersion",
requestType = com.google.protobuf.Empty.class,
responseType = bdchain.api.grpc.ClientVersionResponse.class,
responseType = bdchain.api.grpc.common.ClientVersionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<com.google.protobuf.Empty,
bdchain.api.grpc.ClientVersionResponse> getClientVersionMethod() {
io.grpc.MethodDescriptor<com.google.protobuf.Empty, bdchain.api.grpc.ClientVersionResponse> getClientVersionMethod;
bdchain.api.grpc.common.ClientVersionResponse> getClientVersionMethod() {
io.grpc.MethodDescriptor<com.google.protobuf.Empty, bdchain.api.grpc.common.ClientVersionResponse> getClientVersionMethod;
if ((getClientVersionMethod = AccountingChainGrpc.getClientVersionMethod) == null) {
synchronized (AccountingChainGrpc.class) {
if ((getClientVersionMethod = AccountingChainGrpc.getClientVersionMethod) == null) {
AccountingChainGrpc.getClientVersionMethod = getClientVersionMethod =
io.grpc.MethodDescriptor.<com.google.protobuf.Empty, bdchain.api.grpc.ClientVersionResponse>newBuilder()
io.grpc.MethodDescriptor.<com.google.protobuf.Empty, bdchain.api.grpc.common.ClientVersionResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bdchain.api.AccountingChain", "ClientVersion"))
"bdchain.api.acchain.AccountingChain", "ClientVersion"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.ClientVersionResponse.getDefaultInstance()))
bdchain.api.grpc.common.ClientVersionResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("ClientVersion"))
.build();
}
@ -59,30 +59,30 @@ public final class AccountingChainGrpc {
return getClientVersionMethod;
}
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.BlockNumberRequest,
bdchain.api.grpc.BlockNumberResponse> getBlockNumberMethod;
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.BlockNumberRequest,
bdchain.api.grpc.acchain.BlockNumberResponse> getBlockNumberMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BlockNumber",
requestType = bdchain.api.grpc.BlockNumberRequest.class,
responseType = bdchain.api.grpc.BlockNumberResponse.class,
requestType = bdchain.api.grpc.acchain.BlockNumberRequest.class,
responseType = bdchain.api.grpc.acchain.BlockNumberResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<bdchain.api.grpc.BlockNumberRequest,
bdchain.api.grpc.BlockNumberResponse> getBlockNumberMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.BlockNumberRequest, bdchain.api.grpc.BlockNumberResponse> getBlockNumberMethod;
public static io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.BlockNumberRequest,
bdchain.api.grpc.acchain.BlockNumberResponse> getBlockNumberMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.BlockNumberRequest, bdchain.api.grpc.acchain.BlockNumberResponse> getBlockNumberMethod;
if ((getBlockNumberMethod = AccountingChainGrpc.getBlockNumberMethod) == null) {
synchronized (AccountingChainGrpc.class) {
if ((getBlockNumberMethod = AccountingChainGrpc.getBlockNumberMethod) == null) {
AccountingChainGrpc.getBlockNumberMethod = getBlockNumberMethod =
io.grpc.MethodDescriptor.<bdchain.api.grpc.BlockNumberRequest, bdchain.api.grpc.BlockNumberResponse>newBuilder()
io.grpc.MethodDescriptor.<bdchain.api.grpc.acchain.BlockNumberRequest, bdchain.api.grpc.acchain.BlockNumberResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bdchain.api.AccountingChain", "BlockNumber"))
"bdchain.api.acchain.AccountingChain", "BlockNumber"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.BlockNumberRequest.getDefaultInstance()))
bdchain.api.grpc.acchain.BlockNumberRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.BlockNumberResponse.getDefaultInstance()))
bdchain.api.grpc.acchain.BlockNumberResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("BlockNumber"))
.build();
}
@ -91,30 +91,30 @@ public final class AccountingChainGrpc {
return getBlockNumberMethod;
}
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.GetBlockByNumberRequest,
bdchain.api.grpc.Block> getGetBlockByNumberMethod;
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetBlockByNumberRequest,
bdchain.api.grpc.acchain.Block> getGetBlockByNumberMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBlockByNumber",
requestType = bdchain.api.grpc.GetBlockByNumberRequest.class,
responseType = bdchain.api.grpc.Block.class,
requestType = bdchain.api.grpc.acchain.GetBlockByNumberRequest.class,
responseType = bdchain.api.grpc.acchain.Block.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<bdchain.api.grpc.GetBlockByNumberRequest,
bdchain.api.grpc.Block> getGetBlockByNumberMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.GetBlockByNumberRequest, bdchain.api.grpc.Block> getGetBlockByNumberMethod;
public static io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetBlockByNumberRequest,
bdchain.api.grpc.acchain.Block> getGetBlockByNumberMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetBlockByNumberRequest, bdchain.api.grpc.acchain.Block> getGetBlockByNumberMethod;
if ((getGetBlockByNumberMethod = AccountingChainGrpc.getGetBlockByNumberMethod) == null) {
synchronized (AccountingChainGrpc.class) {
if ((getGetBlockByNumberMethod = AccountingChainGrpc.getGetBlockByNumberMethod) == null) {
AccountingChainGrpc.getGetBlockByNumberMethod = getGetBlockByNumberMethod =
io.grpc.MethodDescriptor.<bdchain.api.grpc.GetBlockByNumberRequest, bdchain.api.grpc.Block>newBuilder()
io.grpc.MethodDescriptor.<bdchain.api.grpc.acchain.GetBlockByNumberRequest, bdchain.api.grpc.acchain.Block>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bdchain.api.AccountingChain", "GetBlockByNumber"))
"bdchain.api.acchain.AccountingChain", "GetBlockByNumber"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.GetBlockByNumberRequest.getDefaultInstance()))
bdchain.api.grpc.acchain.GetBlockByNumberRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.Block.getDefaultInstance()))
bdchain.api.grpc.acchain.Block.getDefaultInstance()))
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetBlockByNumber"))
.build();
}
@ -123,30 +123,30 @@ public final class AccountingChainGrpc {
return getGetBlockByNumberMethod;
}
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.GetBlockByHashRequest,
bdchain.api.grpc.Block> getGetBlockByHashMethod;
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetBlockByHashRequest,
bdchain.api.grpc.acchain.Block> getGetBlockByHashMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBlockByHash",
requestType = bdchain.api.grpc.GetBlockByHashRequest.class,
responseType = bdchain.api.grpc.Block.class,
requestType = bdchain.api.grpc.acchain.GetBlockByHashRequest.class,
responseType = bdchain.api.grpc.acchain.Block.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<bdchain.api.grpc.GetBlockByHashRequest,
bdchain.api.grpc.Block> getGetBlockByHashMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.GetBlockByHashRequest, bdchain.api.grpc.Block> getGetBlockByHashMethod;
public static io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetBlockByHashRequest,
bdchain.api.grpc.acchain.Block> getGetBlockByHashMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetBlockByHashRequest, bdchain.api.grpc.acchain.Block> getGetBlockByHashMethod;
if ((getGetBlockByHashMethod = AccountingChainGrpc.getGetBlockByHashMethod) == null) {
synchronized (AccountingChainGrpc.class) {
if ((getGetBlockByHashMethod = AccountingChainGrpc.getGetBlockByHashMethod) == null) {
AccountingChainGrpc.getGetBlockByHashMethod = getGetBlockByHashMethod =
io.grpc.MethodDescriptor.<bdchain.api.grpc.GetBlockByHashRequest, bdchain.api.grpc.Block>newBuilder()
io.grpc.MethodDescriptor.<bdchain.api.grpc.acchain.GetBlockByHashRequest, bdchain.api.grpc.acchain.Block>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bdchain.api.AccountingChain", "GetBlockByHash"))
"bdchain.api.acchain.AccountingChain", "GetBlockByHash"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.GetBlockByHashRequest.getDefaultInstance()))
bdchain.api.grpc.acchain.GetBlockByHashRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.Block.getDefaultInstance()))
bdchain.api.grpc.acchain.Block.getDefaultInstance()))
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetBlockByHash"))
.build();
}
@ -155,30 +155,30 @@ public final class AccountingChainGrpc {
return getGetBlockByHashMethod;
}
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByHashRequest,
bdchain.api.grpc.Transaction> getGetTransactionByHashMethod;
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetTransactionByHashRequest,
bdchain.api.grpc.acchain.Transaction> getGetTransactionByHashMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetTransactionByHash",
requestType = bdchain.api.grpc.GetTransactionByHashRequest.class,
responseType = bdchain.api.grpc.Transaction.class,
requestType = bdchain.api.grpc.acchain.GetTransactionByHashRequest.class,
responseType = bdchain.api.grpc.acchain.Transaction.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByHashRequest,
bdchain.api.grpc.Transaction> getGetTransactionByHashMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByHashRequest, bdchain.api.grpc.Transaction> getGetTransactionByHashMethod;
public static io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetTransactionByHashRequest,
bdchain.api.grpc.acchain.Transaction> getGetTransactionByHashMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetTransactionByHashRequest, bdchain.api.grpc.acchain.Transaction> getGetTransactionByHashMethod;
if ((getGetTransactionByHashMethod = AccountingChainGrpc.getGetTransactionByHashMethod) == null) {
synchronized (AccountingChainGrpc.class) {
if ((getGetTransactionByHashMethod = AccountingChainGrpc.getGetTransactionByHashMethod) == null) {
AccountingChainGrpc.getGetTransactionByHashMethod = getGetTransactionByHashMethod =
io.grpc.MethodDescriptor.<bdchain.api.grpc.GetTransactionByHashRequest, bdchain.api.grpc.Transaction>newBuilder()
io.grpc.MethodDescriptor.<bdchain.api.grpc.acchain.GetTransactionByHashRequest, bdchain.api.grpc.acchain.Transaction>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bdchain.api.AccountingChain", "GetTransactionByHash"))
"bdchain.api.acchain.AccountingChain", "GetTransactionByHash"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.GetTransactionByHashRequest.getDefaultInstance()))
bdchain.api.grpc.acchain.GetTransactionByHashRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.Transaction.getDefaultInstance()))
bdchain.api.grpc.acchain.Transaction.getDefaultInstance()))
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetTransactionByHash"))
.build();
}
@ -187,30 +187,30 @@ public final class AccountingChainGrpc {
return getGetTransactionByHashMethod;
}
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest,
bdchain.api.grpc.Transaction> getGetTransactionByBlockNumberAndIndexMethod;
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest,
bdchain.api.grpc.acchain.Transaction> getGetTransactionByBlockNumberAndIndexMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetTransactionByBlockNumberAndIndex",
requestType = bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest.class,
responseType = bdchain.api.grpc.Transaction.class,
requestType = bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.class,
responseType = bdchain.api.grpc.acchain.Transaction.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest,
bdchain.api.grpc.Transaction> getGetTransactionByBlockNumberAndIndexMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest, bdchain.api.grpc.Transaction> getGetTransactionByBlockNumberAndIndexMethod;
public static io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest,
bdchain.api.grpc.acchain.Transaction> getGetTransactionByBlockNumberAndIndexMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest, bdchain.api.grpc.acchain.Transaction> getGetTransactionByBlockNumberAndIndexMethod;
if ((getGetTransactionByBlockNumberAndIndexMethod = AccountingChainGrpc.getGetTransactionByBlockNumberAndIndexMethod) == null) {
synchronized (AccountingChainGrpc.class) {
if ((getGetTransactionByBlockNumberAndIndexMethod = AccountingChainGrpc.getGetTransactionByBlockNumberAndIndexMethod) == null) {
AccountingChainGrpc.getGetTransactionByBlockNumberAndIndexMethod = getGetTransactionByBlockNumberAndIndexMethod =
io.grpc.MethodDescriptor.<bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest, bdchain.api.grpc.Transaction>newBuilder()
io.grpc.MethodDescriptor.<bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest, bdchain.api.grpc.acchain.Transaction>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bdchain.api.AccountingChain", "GetTransactionByBlockNumberAndIndex"))
"bdchain.api.acchain.AccountingChain", "GetTransactionByBlockNumberAndIndex"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest.getDefaultInstance()))
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.Transaction.getDefaultInstance()))
bdchain.api.grpc.acchain.Transaction.getDefaultInstance()))
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetTransactionByBlockNumberAndIndex"))
.build();
}
@ -219,30 +219,30 @@ public final class AccountingChainGrpc {
return getGetTransactionByBlockNumberAndIndexMethod;
}
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest,
bdchain.api.grpc.Transaction> getGetTransactionByBlockHashAndIndexMethod;
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest,
bdchain.api.grpc.acchain.Transaction> getGetTransactionByBlockHashAndIndexMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetTransactionByBlockHashAndIndex",
requestType = bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest.class,
responseType = bdchain.api.grpc.Transaction.class,
requestType = bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.class,
responseType = bdchain.api.grpc.acchain.Transaction.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest,
bdchain.api.grpc.Transaction> getGetTransactionByBlockHashAndIndexMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest, bdchain.api.grpc.Transaction> getGetTransactionByBlockHashAndIndexMethod;
public static io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest,
bdchain.api.grpc.acchain.Transaction> getGetTransactionByBlockHashAndIndexMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest, bdchain.api.grpc.acchain.Transaction> getGetTransactionByBlockHashAndIndexMethod;
if ((getGetTransactionByBlockHashAndIndexMethod = AccountingChainGrpc.getGetTransactionByBlockHashAndIndexMethod) == null) {
synchronized (AccountingChainGrpc.class) {
if ((getGetTransactionByBlockHashAndIndexMethod = AccountingChainGrpc.getGetTransactionByBlockHashAndIndexMethod) == null) {
AccountingChainGrpc.getGetTransactionByBlockHashAndIndexMethod = getGetTransactionByBlockHashAndIndexMethod =
io.grpc.MethodDescriptor.<bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest, bdchain.api.grpc.Transaction>newBuilder()
io.grpc.MethodDescriptor.<bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest, bdchain.api.grpc.acchain.Transaction>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bdchain.api.AccountingChain", "GetTransactionByBlockHashAndIndex"))
"bdchain.api.acchain.AccountingChain", "GetTransactionByBlockHashAndIndex"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest.getDefaultInstance()))
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.Transaction.getDefaultInstance()))
bdchain.api.grpc.acchain.Transaction.getDefaultInstance()))
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetTransactionByBlockHashAndIndex"))
.build();
}
@ -281,49 +281,49 @@ public final class AccountingChainGrpc {
/**
*/
public void clientVersion(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.ClientVersionResponse> responseObserver) {
io.grpc.stub.StreamObserver<bdchain.api.grpc.common.ClientVersionResponse> responseObserver) {
asyncUnimplementedUnaryCall(getClientVersionMethod(), responseObserver);
}
/**
*/
public void blockNumber(bdchain.api.grpc.BlockNumberRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.BlockNumberResponse> responseObserver) {
public void blockNumber(bdchain.api.grpc.acchain.BlockNumberRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.BlockNumberResponse> responseObserver) {
asyncUnimplementedUnaryCall(getBlockNumberMethod(), responseObserver);
}
/**
*/
public void getBlockByNumber(bdchain.api.grpc.GetBlockByNumberRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.Block> responseObserver) {
public void getBlockByNumber(bdchain.api.grpc.acchain.GetBlockByNumberRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Block> responseObserver) {
asyncUnimplementedUnaryCall(getGetBlockByNumberMethod(), responseObserver);
}
/**
*/
public void getBlockByHash(bdchain.api.grpc.GetBlockByHashRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.Block> responseObserver) {
public void getBlockByHash(bdchain.api.grpc.acchain.GetBlockByHashRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Block> responseObserver) {
asyncUnimplementedUnaryCall(getGetBlockByHashMethod(), responseObserver);
}
/**
*/
public void getTransactionByHash(bdchain.api.grpc.GetTransactionByHashRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.Transaction> responseObserver) {
public void getTransactionByHash(bdchain.api.grpc.acchain.GetTransactionByHashRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Transaction> responseObserver) {
asyncUnimplementedUnaryCall(getGetTransactionByHashMethod(), responseObserver);
}
/**
*/
public void getTransactionByBlockNumberAndIndex(bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.Transaction> responseObserver) {
public void getTransactionByBlockNumberAndIndex(bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Transaction> responseObserver) {
asyncUnimplementedUnaryCall(getGetTransactionByBlockNumberAndIndexMethod(), responseObserver);
}
/**
*/
public void getTransactionByBlockHashAndIndex(bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.Transaction> responseObserver) {
public void getTransactionByBlockHashAndIndex(bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Transaction> responseObserver) {
asyncUnimplementedUnaryCall(getGetTransactionByBlockHashAndIndexMethod(), responseObserver);
}
@ -334,49 +334,49 @@ public final class AccountingChainGrpc {
asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
bdchain.api.grpc.ClientVersionResponse>(
bdchain.api.grpc.common.ClientVersionResponse>(
this, METHODID_CLIENT_VERSION)))
.addMethod(
getBlockNumberMethod(),
asyncUnaryCall(
new MethodHandlers<
bdchain.api.grpc.BlockNumberRequest,
bdchain.api.grpc.BlockNumberResponse>(
bdchain.api.grpc.acchain.BlockNumberRequest,
bdchain.api.grpc.acchain.BlockNumberResponse>(
this, METHODID_BLOCK_NUMBER)))
.addMethod(
getGetBlockByNumberMethod(),
asyncUnaryCall(
new MethodHandlers<
bdchain.api.grpc.GetBlockByNumberRequest,
bdchain.api.grpc.Block>(
bdchain.api.grpc.acchain.GetBlockByNumberRequest,
bdchain.api.grpc.acchain.Block>(
this, METHODID_GET_BLOCK_BY_NUMBER)))
.addMethod(
getGetBlockByHashMethod(),
asyncUnaryCall(
new MethodHandlers<
bdchain.api.grpc.GetBlockByHashRequest,
bdchain.api.grpc.Block>(
bdchain.api.grpc.acchain.GetBlockByHashRequest,
bdchain.api.grpc.acchain.Block>(
this, METHODID_GET_BLOCK_BY_HASH)))
.addMethod(
getGetTransactionByHashMethod(),
asyncUnaryCall(
new MethodHandlers<
bdchain.api.grpc.GetTransactionByHashRequest,
bdchain.api.grpc.Transaction>(
bdchain.api.grpc.acchain.GetTransactionByHashRequest,
bdchain.api.grpc.acchain.Transaction>(
this, METHODID_GET_TRANSACTION_BY_HASH)))
.addMethod(
getGetTransactionByBlockNumberAndIndexMethod(),
asyncUnaryCall(
new MethodHandlers<
bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest,
bdchain.api.grpc.Transaction>(
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest,
bdchain.api.grpc.acchain.Transaction>(
this, METHODID_GET_TRANSACTION_BY_BLOCK_NUMBER_AND_INDEX)))
.addMethod(
getGetTransactionByBlockHashAndIndexMethod(),
asyncUnaryCall(
new MethodHandlers<
bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest,
bdchain.api.grpc.Transaction>(
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest,
bdchain.api.grpc.acchain.Transaction>(
this, METHODID_GET_TRANSACTION_BY_BLOCK_HASH_AND_INDEX)))
.build();
}
@ -403,55 +403,55 @@ public final class AccountingChainGrpc {
/**
*/
public void clientVersion(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.ClientVersionResponse> responseObserver) {
io.grpc.stub.StreamObserver<bdchain.api.grpc.common.ClientVersionResponse> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getClientVersionMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void blockNumber(bdchain.api.grpc.BlockNumberRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.BlockNumberResponse> responseObserver) {
public void blockNumber(bdchain.api.grpc.acchain.BlockNumberRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.BlockNumberResponse> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getBlockNumberMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getBlockByNumber(bdchain.api.grpc.GetBlockByNumberRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.Block> responseObserver) {
public void getBlockByNumber(bdchain.api.grpc.acchain.GetBlockByNumberRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Block> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetBlockByNumberMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getBlockByHash(bdchain.api.grpc.GetBlockByHashRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.Block> responseObserver) {
public void getBlockByHash(bdchain.api.grpc.acchain.GetBlockByHashRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Block> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetBlockByHashMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getTransactionByHash(bdchain.api.grpc.GetTransactionByHashRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.Transaction> responseObserver) {
public void getTransactionByHash(bdchain.api.grpc.acchain.GetTransactionByHashRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Transaction> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetTransactionByHashMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getTransactionByBlockNumberAndIndex(bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.Transaction> responseObserver) {
public void getTransactionByBlockNumberAndIndex(bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Transaction> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetTransactionByBlockNumberAndIndexMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getTransactionByBlockHashAndIndex(bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.Transaction> responseObserver) {
public void getTransactionByBlockHashAndIndex(bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Transaction> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetTransactionByBlockHashAndIndexMethod(), getCallOptions()), request, responseObserver);
}
@ -477,49 +477,49 @@ public final class AccountingChainGrpc {
/**
*/
public bdchain.api.grpc.ClientVersionResponse clientVersion(com.google.protobuf.Empty request) {
public bdchain.api.grpc.common.ClientVersionResponse clientVersion(com.google.protobuf.Empty request) {
return blockingUnaryCall(
getChannel(), getClientVersionMethod(), getCallOptions(), request);
}
/**
*/
public bdchain.api.grpc.BlockNumberResponse blockNumber(bdchain.api.grpc.BlockNumberRequest request) {
public bdchain.api.grpc.acchain.BlockNumberResponse blockNumber(bdchain.api.grpc.acchain.BlockNumberRequest request) {
return blockingUnaryCall(
getChannel(), getBlockNumberMethod(), getCallOptions(), request);
}
/**
*/
public bdchain.api.grpc.Block getBlockByNumber(bdchain.api.grpc.GetBlockByNumberRequest request) {
public bdchain.api.grpc.acchain.Block getBlockByNumber(bdchain.api.grpc.acchain.GetBlockByNumberRequest request) {
return blockingUnaryCall(
getChannel(), getGetBlockByNumberMethod(), getCallOptions(), request);
}
/**
*/
public bdchain.api.grpc.Block getBlockByHash(bdchain.api.grpc.GetBlockByHashRequest request) {
public bdchain.api.grpc.acchain.Block getBlockByHash(bdchain.api.grpc.acchain.GetBlockByHashRequest request) {
return blockingUnaryCall(
getChannel(), getGetBlockByHashMethod(), getCallOptions(), request);
}
/**
*/
public bdchain.api.grpc.Transaction getTransactionByHash(bdchain.api.grpc.GetTransactionByHashRequest request) {
public bdchain.api.grpc.acchain.Transaction getTransactionByHash(bdchain.api.grpc.acchain.GetTransactionByHashRequest request) {
return blockingUnaryCall(
getChannel(), getGetTransactionByHashMethod(), getCallOptions(), request);
}
/**
*/
public bdchain.api.grpc.Transaction getTransactionByBlockNumberAndIndex(bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest request) {
public bdchain.api.grpc.acchain.Transaction getTransactionByBlockNumberAndIndex(bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest request) {
return blockingUnaryCall(
getChannel(), getGetTransactionByBlockNumberAndIndexMethod(), getCallOptions(), request);
}
/**
*/
public bdchain.api.grpc.Transaction getTransactionByBlockHashAndIndex(bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest request) {
public bdchain.api.grpc.acchain.Transaction getTransactionByBlockHashAndIndex(bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest request) {
return blockingUnaryCall(
getChannel(), getGetTransactionByBlockHashAndIndexMethod(), getCallOptions(), request);
}
@ -545,7 +545,7 @@ public final class AccountingChainGrpc {
/**
*/
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.ClientVersionResponse> clientVersion(
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.common.ClientVersionResponse> clientVersion(
com.google.protobuf.Empty request) {
return futureUnaryCall(
getChannel().newCall(getClientVersionMethod(), getCallOptions()), request);
@ -553,48 +553,48 @@ public final class AccountingChainGrpc {
/**
*/
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.BlockNumberResponse> blockNumber(
bdchain.api.grpc.BlockNumberRequest request) {
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.acchain.BlockNumberResponse> blockNumber(
bdchain.api.grpc.acchain.BlockNumberRequest request) {
return futureUnaryCall(
getChannel().newCall(getBlockNumberMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.Block> getBlockByNumber(
bdchain.api.grpc.GetBlockByNumberRequest request) {
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.acchain.Block> getBlockByNumber(
bdchain.api.grpc.acchain.GetBlockByNumberRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetBlockByNumberMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.Block> getBlockByHash(
bdchain.api.grpc.GetBlockByHashRequest request) {
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.acchain.Block> getBlockByHash(
bdchain.api.grpc.acchain.GetBlockByHashRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetBlockByHashMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.Transaction> getTransactionByHash(
bdchain.api.grpc.GetTransactionByHashRequest request) {
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.acchain.Transaction> getTransactionByHash(
bdchain.api.grpc.acchain.GetTransactionByHashRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetTransactionByHashMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.Transaction> getTransactionByBlockNumberAndIndex(
bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest request) {
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.acchain.Transaction> getTransactionByBlockNumberAndIndex(
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetTransactionByBlockNumberAndIndexMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.Transaction> getTransactionByBlockHashAndIndex(
bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest request) {
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.acchain.Transaction> getTransactionByBlockHashAndIndex(
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetTransactionByBlockHashAndIndexMethod(), getCallOptions()), request);
}
@ -627,31 +627,31 @@ public final class AccountingChainGrpc {
switch (methodId) {
case METHODID_CLIENT_VERSION:
serviceImpl.clientVersion((com.google.protobuf.Empty) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.ClientVersionResponse>) responseObserver);
(io.grpc.stub.StreamObserver<bdchain.api.grpc.common.ClientVersionResponse>) responseObserver);
break;
case METHODID_BLOCK_NUMBER:
serviceImpl.blockNumber((bdchain.api.grpc.BlockNumberRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.BlockNumberResponse>) responseObserver);
serviceImpl.blockNumber((bdchain.api.grpc.acchain.BlockNumberRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.BlockNumberResponse>) responseObserver);
break;
case METHODID_GET_BLOCK_BY_NUMBER:
serviceImpl.getBlockByNumber((bdchain.api.grpc.GetBlockByNumberRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.Block>) responseObserver);
serviceImpl.getBlockByNumber((bdchain.api.grpc.acchain.GetBlockByNumberRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Block>) responseObserver);
break;
case METHODID_GET_BLOCK_BY_HASH:
serviceImpl.getBlockByHash((bdchain.api.grpc.GetBlockByHashRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.Block>) responseObserver);
serviceImpl.getBlockByHash((bdchain.api.grpc.acchain.GetBlockByHashRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Block>) responseObserver);
break;
case METHODID_GET_TRANSACTION_BY_HASH:
serviceImpl.getTransactionByHash((bdchain.api.grpc.GetTransactionByHashRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.Transaction>) responseObserver);
serviceImpl.getTransactionByHash((bdchain.api.grpc.acchain.GetTransactionByHashRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Transaction>) responseObserver);
break;
case METHODID_GET_TRANSACTION_BY_BLOCK_NUMBER_AND_INDEX:
serviceImpl.getTransactionByBlockNumberAndIndex((bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.Transaction>) responseObserver);
serviceImpl.getTransactionByBlockNumberAndIndex((bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Transaction>) responseObserver);
break;
case METHODID_GET_TRANSACTION_BY_BLOCK_HASH_AND_INDEX:
serviceImpl.getTransactionByBlockHashAndIndex((bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.Transaction>) responseObserver);
serviceImpl.getTransactionByBlockHashAndIndex((bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Transaction>) responseObserver);
break;
default:
throw new AssertionError();
@ -675,7 +675,7 @@ public final class AccountingChainGrpc {
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return bdchain.api.grpc.AccountingChainProto.getDescriptor();
return bdchain.api.grpc.acchain.AccountingChainProto.getDescriptor();
}
@java.lang.Override

View File

@ -0,0 +1,193 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc.acchain;
public final class AccountingChainProto {
private AccountingChainProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_acchain_Transaction_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_acchain_Transaction_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_acchain_Block_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_acchain_Block_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_acchain_BlockNumberRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_acchain_BlockNumberRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_acchain_BlockNumberResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_acchain_BlockNumberResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_acchain_GetBlockByNumberRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_acchain_GetBlockByNumberRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_acchain_GetBlockByHashRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_acchain_GetBlockByHashRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_acchain_GetTransactionByHashRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_acchain_GetTransactionByHashRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\032bdchain/api/ac_chain.proto\022\023bdchain.ap" +
"i.acchain\032\033google/protobuf/empty.proto\032\030" +
"bdchain/api/common.proto\"\337\001\n\013Transaction" +
"\022\024\n\014block_number\030\001 \001(\004\022\022\n\nblock_hash\030\002 \001" +
"(\014\022\r\n\005index\030\003 \001(\r\022\014\n\004hash\030\004 \001(\014\0221\n\004type\030" +
"\005 \001(\0162#.bdchain.api.common.TransactionTy" +
"pe\022\014\n\004from\030\006 \001(\014\022\r\n\005nonce\030\007 \001(\004\022\n\n\002to\030\010 " +
"\001(\014\022\014\n\004data\030\t \001(\014\022\t\n\001v\030\n \001(\014\022\t\n\001r\030\013 \001(\014\022" +
"\t\n\001s\030\014 \001(\014\"\335\001\n\005Block\022\016\n\006number\030\001 \001(\004\022\014\n\004" +
"hash\030\002 \001(\014\022\023\n\013parent_hash\030\003 \001(\014\022\021\n\twitne" +
"sses\030\004 \003(\014\022\021\n\ttimestamp\030\005 \001(\003\022\014\n\004size\030\006 " +
"\001(\004\022\031\n\021transactions_root\030\007 \001(\014\0226\n\014transa" +
"ctions\030\010 \003(\0132 .bdchain.api.acchain.Trans" +
"action\022\032\n\022transaction_hashes\030\t \003(\014\"$\n\022Bl" +
"ockNumberRequest\022\016\n\006ledger\030\001 \001(\t\"+\n\023Bloc" +
"kNumberResponse\022\024\n\014block_number\030\001 \001(\004\"S\n" +
"\027GetBlockByNumberRequest\022\016\n\006ledger\030\001 \001(\t" +
"\022\016\n\006number\030\002 \001(\004\022\030\n\020full_transaction\030\003 \001" +
"(\010\"O\n\025GetBlockByHashRequest\022\016\n\006ledger\030\001 " +
"\001(\t\022\014\n\004hash\030\002 \001(\014\022\030\n\020full_transaction\030\003 " +
"\001(\010\";\n\033GetTransactionByHashRequest\022\016\n\006le" +
"dger\030\001 \001(\t\022\014\n\004hash\030\002 \001(\014\"a\n*GetTransacti" +
"onByBlockNumberAndIndexRequest\022\016\n\006ledger" +
"\030\001 \001(\t\022\024\n\014block_number\030\002 \001(\004\022\r\n\005index\030\003 " +
"\001(\r\"]\n(GetTransactionByBlockHashAndIndex" +
"Request\022\016\n\006ledger\030\001 \001(\t\022\022\n\nblock_hash\030\002 " +
"\001(\014\022\r\n\005index\030\003 \001(\r2\375\005\n\017AccountingChain\022R" +
"\n\rClientVersion\022\026.google.protobuf.Empty\032" +
").bdchain.api.common.ClientVersionRespon" +
"se\022`\n\013BlockNumber\022\'.bdchain.api.acchain." +
"BlockNumberRequest\032(.bdchain.api.acchain" +
".BlockNumberResponse\022\\\n\020GetBlockByNumber" +
"\022,.bdchain.api.acchain.GetBlockByNumberR" +
"equest\032\032.bdchain.api.acchain.Block\022X\n\016Ge" +
"tBlockByHash\022*.bdchain.api.acchain.GetBl" +
"ockByHashRequest\032\032.bdchain.api.acchain.B" +
"lock\022j\n\024GetTransactionByHash\0220.bdchain.a" +
"pi.acchain.GetTransactionByHashRequest\032 " +
".bdchain.api.acchain.Transaction\022\210\001\n#Get" +
"TransactionByBlockNumberAndIndex\022?.bdcha" +
"in.api.acchain.GetTransactionByBlockNumb" +
"erAndIndexRequest\032 .bdchain.api.acchain." +
"Transaction\022\204\001\n!GetTransactionByBlockHas" +
"hAndIndex\022=.bdchain.api.acchain.GetTrans" +
"actionByBlockHashAndIndexRequest\032 .bdcha" +
"in.api.acchain.TransactionBP\n\030bdchain.ap" +
"i.grpc.acchainB\024AccountingChainProtoP\001Z\034" +
"bdchain/sdk/api/grpc/acchainb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.EmptyProto.getDescriptor(),
bdchain.api.grpc.common.CommonProto.getDescriptor(),
}, assigner);
internal_static_bdchain_api_acchain_Transaction_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_bdchain_api_acchain_Transaction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_acchain_Transaction_descriptor,
new java.lang.String[] { "BlockNumber", "BlockHash", "Index", "Hash", "Type", "From", "Nonce", "To", "Data", "V", "R", "S", });
internal_static_bdchain_api_acchain_Block_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_bdchain_api_acchain_Block_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_acchain_Block_descriptor,
new java.lang.String[] { "Number", "Hash", "ParentHash", "Witnesses", "Timestamp", "Size", "TransactionsRoot", "Transactions", "TransactionHashes", });
internal_static_bdchain_api_acchain_BlockNumberRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_bdchain_api_acchain_BlockNumberRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_acchain_BlockNumberRequest_descriptor,
new java.lang.String[] { "Ledger", });
internal_static_bdchain_api_acchain_BlockNumberResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_bdchain_api_acchain_BlockNumberResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_acchain_BlockNumberResponse_descriptor,
new java.lang.String[] { "BlockNumber", });
internal_static_bdchain_api_acchain_GetBlockByNumberRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_bdchain_api_acchain_GetBlockByNumberRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_acchain_GetBlockByNumberRequest_descriptor,
new java.lang.String[] { "Ledger", "Number", "FullTransaction", });
internal_static_bdchain_api_acchain_GetBlockByHashRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_bdchain_api_acchain_GetBlockByHashRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_acchain_GetBlockByHashRequest_descriptor,
new java.lang.String[] { "Ledger", "Hash", "FullTransaction", });
internal_static_bdchain_api_acchain_GetTransactionByHashRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_bdchain_api_acchain_GetTransactionByHashRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_acchain_GetTransactionByHashRequest_descriptor,
new java.lang.String[] { "Ledger", "Hash", });
internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_descriptor,
new java.lang.String[] { "Ledger", "BlockNumber", "Index", });
internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_descriptor,
new java.lang.String[] { "Ledger", "BlockHash", "Index", });
com.google.protobuf.EmptyProto.getDescriptor();
bdchain.api.grpc.common.CommonProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
/**
* Protobuf type {@code bdchain.api.BlockNumberRequest}
* Protobuf type {@code bdchain.api.acchain.BlockNumberRequest}
*/
public final class BlockNumberRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.BlockNumberRequest)
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.BlockNumberRequest)
BlockNumberRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockNumberRequest.newBuilder() to construct.
@ -50,7 +50,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -70,15 +70,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_BlockNumberRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_BlockNumberRequest_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.BlockNumberRequest.class, bdchain.api.grpc.BlockNumberRequest.Builder.class);
bdchain.api.grpc.acchain.BlockNumberRequest.class, bdchain.api.grpc.acchain.BlockNumberRequest.Builder.class);
}
public static final int LEDGER_FIELD_NUMBER = 1;
@ -154,16 +154,15 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.BlockNumberRequest)) {
if (!(obj instanceof bdchain.api.grpc.acchain.BlockNumberRequest)) {
return super.equals(obj);
}
bdchain.api.grpc.BlockNumberRequest other = (bdchain.api.grpc.BlockNumberRequest) obj;
bdchain.api.grpc.acchain.BlockNumberRequest other = (bdchain.api.grpc.acchain.BlockNumberRequest) obj;
boolean result = true;
result = result && getLedger()
.equals(other.getLedger());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!getLedger()
.equals(other.getLedger())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -180,69 +179,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.BlockNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.BlockNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.BlockNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.BlockNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.BlockNumberRequest parseFrom(byte[] data)
public static bdchain.api.grpc.acchain.BlockNumberRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.BlockNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.BlockNumberRequest parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.BlockNumberRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.BlockNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.BlockNumberRequest parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.BlockNumberRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.BlockNumberRequest parseDelimitedFrom(
public static bdchain.api.grpc.acchain.BlockNumberRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.BlockNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.BlockNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -255,7 +254,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.BlockNumberRequest prototype) {
public static Builder newBuilder(bdchain.api.grpc.acchain.BlockNumberRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -271,26 +270,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.BlockNumberRequest}
* Protobuf type {@code bdchain.api.acchain.BlockNumberRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.BlockNumberRequest)
bdchain.api.grpc.BlockNumberRequestOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.acchain.BlockNumberRequest)
bdchain.api.grpc.acchain.BlockNumberRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_BlockNumberRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_BlockNumberRequest_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.BlockNumberRequest.class, bdchain.api.grpc.BlockNumberRequest.Builder.class);
bdchain.api.grpc.acchain.BlockNumberRequest.class, bdchain.api.grpc.acchain.BlockNumberRequest.Builder.class);
}
// Construct using bdchain.api.grpc.BlockNumberRequest.newBuilder()
// Construct using bdchain.api.grpc.acchain.BlockNumberRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -316,17 +315,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_BlockNumberRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberRequest_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.BlockNumberRequest getDefaultInstanceForType() {
return bdchain.api.grpc.BlockNumberRequest.getDefaultInstance();
public bdchain.api.grpc.acchain.BlockNumberRequest getDefaultInstanceForType() {
return bdchain.api.grpc.acchain.BlockNumberRequest.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.BlockNumberRequest build() {
bdchain.api.grpc.BlockNumberRequest result = buildPartial();
public bdchain.api.grpc.acchain.BlockNumberRequest build() {
bdchain.api.grpc.acchain.BlockNumberRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -334,8 +333,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.BlockNumberRequest buildPartial() {
bdchain.api.grpc.BlockNumberRequest result = new bdchain.api.grpc.BlockNumberRequest(this);
public bdchain.api.grpc.acchain.BlockNumberRequest buildPartial() {
bdchain.api.grpc.acchain.BlockNumberRequest result = new bdchain.api.grpc.acchain.BlockNumberRequest(this);
result.ledger_ = ledger_;
onBuilt();
return result;
@ -343,48 +342,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.BlockNumberRequest) {
return mergeFrom((bdchain.api.grpc.BlockNumberRequest)other);
if (other instanceof bdchain.api.grpc.acchain.BlockNumberRequest) {
return mergeFrom((bdchain.api.grpc.acchain.BlockNumberRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.BlockNumberRequest other) {
if (other == bdchain.api.grpc.BlockNumberRequest.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.acchain.BlockNumberRequest other) {
if (other == bdchain.api.grpc.acchain.BlockNumberRequest.getDefaultInstance()) return this;
if (!other.getLedger().isEmpty()) {
ledger_ = other.ledger_;
onChanged();
@ -404,11 +403,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.BlockNumberRequest parsedMessage = null;
bdchain.api.grpc.acchain.BlockNumberRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.BlockNumberRequest) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.acchain.BlockNumberRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -489,7 +488,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -499,16 +498,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.BlockNumberRequest)
// @@protoc_insertion_point(builder_scope:bdchain.api.acchain.BlockNumberRequest)
}
// @@protoc_insertion_point(class_scope:bdchain.api.BlockNumberRequest)
private static final bdchain.api.grpc.BlockNumberRequest DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.acchain.BlockNumberRequest)
private static final bdchain.api.grpc.acchain.BlockNumberRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.BlockNumberRequest();
DEFAULT_INSTANCE = new bdchain.api.grpc.acchain.BlockNumberRequest();
}
public static bdchain.api.grpc.BlockNumberRequest getDefaultInstance() {
public static bdchain.api.grpc.acchain.BlockNumberRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -533,7 +532,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.BlockNumberRequest getDefaultInstanceForType() {
public bdchain.api.grpc.acchain.BlockNumberRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
public interface BlockNumberRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.BlockNumberRequest)
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.BlockNumberRequest)
com.google.protobuf.MessageOrBuilder {
/**

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
/**
* Protobuf type {@code bdchain.api.BlockNumberResponse}
* Protobuf type {@code bdchain.api.acchain.BlockNumberResponse}
*/
public final class BlockNumberResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.BlockNumberResponse)
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.BlockNumberResponse)
BlockNumberResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockNumberResponse.newBuilder() to construct.
@ -16,7 +16,6 @@ private static final long serialVersionUID = 0L;
super(builder);
}
private BlockNumberResponse() {
blockNumber_ = 0L;
}
@java.lang.Override
@ -49,7 +48,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -69,15 +68,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_BlockNumberResponse_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_BlockNumberResponse_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.BlockNumberResponse.class, bdchain.api.grpc.BlockNumberResponse.Builder.class);
bdchain.api.grpc.acchain.BlockNumberResponse.class, bdchain.api.grpc.acchain.BlockNumberResponse.Builder.class);
}
public static final int BLOCK_NUMBER_FIELD_NUMBER = 1;
@ -129,16 +128,15 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.BlockNumberResponse)) {
if (!(obj instanceof bdchain.api.grpc.acchain.BlockNumberResponse)) {
return super.equals(obj);
}
bdchain.api.grpc.BlockNumberResponse other = (bdchain.api.grpc.BlockNumberResponse) obj;
bdchain.api.grpc.acchain.BlockNumberResponse other = (bdchain.api.grpc.acchain.BlockNumberResponse) obj;
boolean result = true;
result = result && (getBlockNumber()
== other.getBlockNumber());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (getBlockNumber()
!= other.getBlockNumber()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -156,69 +154,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.BlockNumberResponse parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.BlockNumberResponse parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.BlockNumberResponse parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.BlockNumberResponse parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.BlockNumberResponse parseFrom(byte[] data)
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.BlockNumberResponse parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.BlockNumberResponse parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.BlockNumberResponse parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.BlockNumberResponse parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.BlockNumberResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.BlockNumberResponse parseDelimitedFrom(
public static bdchain.api.grpc.acchain.BlockNumberResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.BlockNumberResponse parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.BlockNumberResponse parseFrom(
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -231,7 +229,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.BlockNumberResponse prototype) {
public static Builder newBuilder(bdchain.api.grpc.acchain.BlockNumberResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -247,26 +245,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.BlockNumberResponse}
* Protobuf type {@code bdchain.api.acchain.BlockNumberResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.BlockNumberResponse)
bdchain.api.grpc.BlockNumberResponseOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.acchain.BlockNumberResponse)
bdchain.api.grpc.acchain.BlockNumberResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_BlockNumberResponse_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_BlockNumberResponse_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.BlockNumberResponse.class, bdchain.api.grpc.BlockNumberResponse.Builder.class);
bdchain.api.grpc.acchain.BlockNumberResponse.class, bdchain.api.grpc.acchain.BlockNumberResponse.Builder.class);
}
// Construct using bdchain.api.grpc.BlockNumberResponse.newBuilder()
// Construct using bdchain.api.grpc.acchain.BlockNumberResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -292,17 +290,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_BlockNumberResponse_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberResponse_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.BlockNumberResponse getDefaultInstanceForType() {
return bdchain.api.grpc.BlockNumberResponse.getDefaultInstance();
public bdchain.api.grpc.acchain.BlockNumberResponse getDefaultInstanceForType() {
return bdchain.api.grpc.acchain.BlockNumberResponse.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.BlockNumberResponse build() {
bdchain.api.grpc.BlockNumberResponse result = buildPartial();
public bdchain.api.grpc.acchain.BlockNumberResponse build() {
bdchain.api.grpc.acchain.BlockNumberResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -310,8 +308,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.BlockNumberResponse buildPartial() {
bdchain.api.grpc.BlockNumberResponse result = new bdchain.api.grpc.BlockNumberResponse(this);
public bdchain.api.grpc.acchain.BlockNumberResponse buildPartial() {
bdchain.api.grpc.acchain.BlockNumberResponse result = new bdchain.api.grpc.acchain.BlockNumberResponse(this);
result.blockNumber_ = blockNumber_;
onBuilt();
return result;
@ -319,48 +317,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.BlockNumberResponse) {
return mergeFrom((bdchain.api.grpc.BlockNumberResponse)other);
if (other instanceof bdchain.api.grpc.acchain.BlockNumberResponse) {
return mergeFrom((bdchain.api.grpc.acchain.BlockNumberResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.BlockNumberResponse other) {
if (other == bdchain.api.grpc.BlockNumberResponse.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.acchain.BlockNumberResponse other) {
if (other == bdchain.api.grpc.acchain.BlockNumberResponse.getDefaultInstance()) return this;
if (other.getBlockNumber() != 0L) {
setBlockNumber(other.getBlockNumber());
}
@ -379,11 +377,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.BlockNumberResponse parsedMessage = null;
bdchain.api.grpc.acchain.BlockNumberResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.BlockNumberResponse) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.acchain.BlockNumberResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -421,7 +419,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -431,16 +429,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.BlockNumberResponse)
// @@protoc_insertion_point(builder_scope:bdchain.api.acchain.BlockNumberResponse)
}
// @@protoc_insertion_point(class_scope:bdchain.api.BlockNumberResponse)
private static final bdchain.api.grpc.BlockNumberResponse DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.acchain.BlockNumberResponse)
private static final bdchain.api.grpc.acchain.BlockNumberResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.BlockNumberResponse();
DEFAULT_INSTANCE = new bdchain.api.grpc.acchain.BlockNumberResponse();
}
public static bdchain.api.grpc.BlockNumberResponse getDefaultInstance() {
public static bdchain.api.grpc.acchain.BlockNumberResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -465,7 +463,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.BlockNumberResponse getDefaultInstanceForType() {
public bdchain.api.grpc.acchain.BlockNumberResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
public interface BlockNumberResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.BlockNumberResponse)
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.BlockNumberResponse)
com.google.protobuf.MessageOrBuilder {
/**

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
public interface BlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.Block)
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.Block)
com.google.protobuf.MessageOrBuilder {
/**
@ -36,19 +36,35 @@ public interface BlockOrBuilder extends
/**
* <pre>
* 见证者账户地址
* 见证者账户地址的数组
* </pre>
*
* <code>bytes witness = 4;</code>
* <code>repeated bytes witnesses = 4;</code>
*/
com.google.protobuf.ByteString getWitness();
java.util.List<com.google.protobuf.ByteString> getWitnessesList();
/**
* <pre>
* 见证者账户地址的数组
* </pre>
*
* <code>repeated bytes witnesses = 4;</code>
*/
int getWitnessesCount();
/**
* <pre>
* 见证者账户地址的数组
* </pre>
*
* <code>repeated bytes witnesses = 4;</code>
*/
com.google.protobuf.ByteString getWitnesses(int index);
/**
* <pre>
* 区块产生时的UNIX时间戳
* </pre>
*
* <code>uint64 timestamp = 5;</code>
* <code>int64 timestamp = 5;</code>
*/
long getTimestamp();
@ -75,24 +91,24 @@ public interface BlockOrBuilder extends
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.Transaction transactions = 8;</code>
* <code>repeated .bdchain.api.acchain.Transaction transactions = 8;</code>
*/
java.util.List<bdchain.api.grpc.Transaction>
java.util.List<bdchain.api.grpc.acchain.Transaction>
getTransactionsList();
/**
* <pre>
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.Transaction transactions = 8;</code>
* <code>repeated .bdchain.api.acchain.Transaction transactions = 8;</code>
*/
bdchain.api.grpc.Transaction getTransactions(int index);
bdchain.api.grpc.acchain.Transaction getTransactions(int index);
/**
* <pre>
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.Transaction transactions = 8;</code>
* <code>repeated .bdchain.api.acchain.Transaction transactions = 8;</code>
*/
int getTransactionsCount();
/**
@ -100,18 +116,18 @@ public interface BlockOrBuilder extends
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.Transaction transactions = 8;</code>
* <code>repeated .bdchain.api.acchain.Transaction transactions = 8;</code>
*/
java.util.List<? extends bdchain.api.grpc.TransactionOrBuilder>
java.util.List<? extends bdchain.api.grpc.acchain.TransactionOrBuilder>
getTransactionsOrBuilderList();
/**
* <pre>
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.Transaction transactions = 8;</code>
* <code>repeated .bdchain.api.acchain.Transaction transactions = 8;</code>
*/
bdchain.api.grpc.TransactionOrBuilder getTransactionsOrBuilder(
bdchain.api.grpc.acchain.TransactionOrBuilder getTransactionsOrBuilder(
int index);
/**

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
/**
* Protobuf type {@code bdchain.api.GetBlockByHashRequest}
* Protobuf type {@code bdchain.api.acchain.GetBlockByHashRequest}
*/
public final class GetBlockByHashRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.GetBlockByHashRequest)
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.GetBlockByHashRequest)
GetBlockByHashRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBlockByHashRequest.newBuilder() to construct.
@ -18,7 +18,6 @@ private static final long serialVersionUID = 0L;
private GetBlockByHashRequest() {
ledger_ = "";
hash_ = com.google.protobuf.ByteString.EMPTY;
fullTransaction_ = false;
}
@java.lang.Override
@ -62,7 +61,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -82,15 +81,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetBlockByHashRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByHashRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetBlockByHashRequest_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.GetBlockByHashRequest.class, bdchain.api.grpc.GetBlockByHashRequest.Builder.class);
bdchain.api.grpc.acchain.GetBlockByHashRequest.class, bdchain.api.grpc.acchain.GetBlockByHashRequest.Builder.class);
}
public static final int LEDGER_FIELD_NUMBER = 1;
@ -198,20 +197,19 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.GetBlockByHashRequest)) {
if (!(obj instanceof bdchain.api.grpc.acchain.GetBlockByHashRequest)) {
return super.equals(obj);
}
bdchain.api.grpc.GetBlockByHashRequest other = (bdchain.api.grpc.GetBlockByHashRequest) obj;
bdchain.api.grpc.acchain.GetBlockByHashRequest other = (bdchain.api.grpc.acchain.GetBlockByHashRequest) obj;
boolean result = true;
result = result && getLedger()
.equals(other.getLedger());
result = result && getHash()
.equals(other.getHash());
result = result && (getFullTransaction()
== other.getFullTransaction());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!getLedger()
.equals(other.getLedger())) return false;
if (!getHash()
.equals(other.getHash())) return false;
if (getFullTransaction()
!= other.getFullTransaction()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -233,69 +231,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.GetBlockByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetBlockByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetBlockByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetBlockByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetBlockByHashRequest parseFrom(byte[] data)
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetBlockByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetBlockByHashRequest parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetBlockByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.GetBlockByHashRequest parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetBlockByHashRequest parseDelimitedFrom(
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.GetBlockByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetBlockByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -308,7 +306,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.GetBlockByHashRequest prototype) {
public static Builder newBuilder(bdchain.api.grpc.acchain.GetBlockByHashRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -324,26 +322,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.GetBlockByHashRequest}
* Protobuf type {@code bdchain.api.acchain.GetBlockByHashRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.GetBlockByHashRequest)
bdchain.api.grpc.GetBlockByHashRequestOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.acchain.GetBlockByHashRequest)
bdchain.api.grpc.acchain.GetBlockByHashRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetBlockByHashRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByHashRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetBlockByHashRequest_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.GetBlockByHashRequest.class, bdchain.api.grpc.GetBlockByHashRequest.Builder.class);
bdchain.api.grpc.acchain.GetBlockByHashRequest.class, bdchain.api.grpc.acchain.GetBlockByHashRequest.Builder.class);
}
// Construct using bdchain.api.grpc.GetBlockByHashRequest.newBuilder()
// Construct using bdchain.api.grpc.acchain.GetBlockByHashRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -373,17 +371,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetBlockByHashRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByHashRequest_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.GetBlockByHashRequest getDefaultInstanceForType() {
return bdchain.api.grpc.GetBlockByHashRequest.getDefaultInstance();
public bdchain.api.grpc.acchain.GetBlockByHashRequest getDefaultInstanceForType() {
return bdchain.api.grpc.acchain.GetBlockByHashRequest.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.GetBlockByHashRequest build() {
bdchain.api.grpc.GetBlockByHashRequest result = buildPartial();
public bdchain.api.grpc.acchain.GetBlockByHashRequest build() {
bdchain.api.grpc.acchain.GetBlockByHashRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -391,8 +389,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.GetBlockByHashRequest buildPartial() {
bdchain.api.grpc.GetBlockByHashRequest result = new bdchain.api.grpc.GetBlockByHashRequest(this);
public bdchain.api.grpc.acchain.GetBlockByHashRequest buildPartial() {
bdchain.api.grpc.acchain.GetBlockByHashRequest result = new bdchain.api.grpc.acchain.GetBlockByHashRequest(this);
result.ledger_ = ledger_;
result.hash_ = hash_;
result.fullTransaction_ = fullTransaction_;
@ -402,48 +400,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.GetBlockByHashRequest) {
return mergeFrom((bdchain.api.grpc.GetBlockByHashRequest)other);
if (other instanceof bdchain.api.grpc.acchain.GetBlockByHashRequest) {
return mergeFrom((bdchain.api.grpc.acchain.GetBlockByHashRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.GetBlockByHashRequest other) {
if (other == bdchain.api.grpc.GetBlockByHashRequest.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.acchain.GetBlockByHashRequest other) {
if (other == bdchain.api.grpc.acchain.GetBlockByHashRequest.getDefaultInstance()) return this;
if (!other.getLedger().isEmpty()) {
ledger_ = other.ledger_;
onChanged();
@ -469,11 +467,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.GetBlockByHashRequest parsedMessage = null;
bdchain.api.grpc.acchain.GetBlockByHashRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.GetBlockByHashRequest) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.acchain.GetBlockByHashRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -609,7 +607,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -619,16 +617,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.GetBlockByHashRequest)
// @@protoc_insertion_point(builder_scope:bdchain.api.acchain.GetBlockByHashRequest)
}
// @@protoc_insertion_point(class_scope:bdchain.api.GetBlockByHashRequest)
private static final bdchain.api.grpc.GetBlockByHashRequest DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.acchain.GetBlockByHashRequest)
private static final bdchain.api.grpc.acchain.GetBlockByHashRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.GetBlockByHashRequest();
DEFAULT_INSTANCE = new bdchain.api.grpc.acchain.GetBlockByHashRequest();
}
public static bdchain.api.grpc.GetBlockByHashRequest getDefaultInstance() {
public static bdchain.api.grpc.acchain.GetBlockByHashRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -653,7 +651,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.GetBlockByHashRequest getDefaultInstanceForType() {
public bdchain.api.grpc.acchain.GetBlockByHashRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
public interface GetBlockByHashRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.GetBlockByHashRequest)
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.GetBlockByHashRequest)
com.google.protobuf.MessageOrBuilder {
/**

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
/**
* Protobuf type {@code bdchain.api.GetBlockByNumberRequest}
* Protobuf type {@code bdchain.api.acchain.GetBlockByNumberRequest}
*/
public final class GetBlockByNumberRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.GetBlockByNumberRequest)
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.GetBlockByNumberRequest)
GetBlockByNumberRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBlockByNumberRequest.newBuilder() to construct.
@ -17,8 +17,6 @@ private static final long serialVersionUID = 0L;
}
private GetBlockByNumberRequest() {
ledger_ = "";
number_ = 0L;
fullTransaction_ = false;
}
@java.lang.Override
@ -62,7 +60,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -82,15 +80,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetBlockByNumberRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByNumberRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetBlockByNumberRequest_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByNumberRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.GetBlockByNumberRequest.class, bdchain.api.grpc.GetBlockByNumberRequest.Builder.class);
bdchain.api.grpc.acchain.GetBlockByNumberRequest.class, bdchain.api.grpc.acchain.GetBlockByNumberRequest.Builder.class);
}
public static final int LEDGER_FIELD_NUMBER = 1;
@ -198,20 +196,19 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.GetBlockByNumberRequest)) {
if (!(obj instanceof bdchain.api.grpc.acchain.GetBlockByNumberRequest)) {
return super.equals(obj);
}
bdchain.api.grpc.GetBlockByNumberRequest other = (bdchain.api.grpc.GetBlockByNumberRequest) obj;
bdchain.api.grpc.acchain.GetBlockByNumberRequest other = (bdchain.api.grpc.acchain.GetBlockByNumberRequest) obj;
boolean result = true;
result = result && getLedger()
.equals(other.getLedger());
result = result && (getNumber()
== other.getNumber());
result = result && (getFullTransaction()
== other.getFullTransaction());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!getLedger()
.equals(other.getLedger())) return false;
if (getNumber()
!= other.getNumber()) return false;
if (getFullTransaction()
!= other.getFullTransaction()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -234,69 +231,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.GetBlockByNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetBlockByNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetBlockByNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetBlockByNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetBlockByNumberRequest parseFrom(byte[] data)
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetBlockByNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetBlockByNumberRequest parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetBlockByNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.GetBlockByNumberRequest parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetBlockByNumberRequest parseDelimitedFrom(
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.GetBlockByNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetBlockByNumberRequest parseFrom(
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -309,7 +306,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.GetBlockByNumberRequest prototype) {
public static Builder newBuilder(bdchain.api.grpc.acchain.GetBlockByNumberRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -325,26 +322,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.GetBlockByNumberRequest}
* Protobuf type {@code bdchain.api.acchain.GetBlockByNumberRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.GetBlockByNumberRequest)
bdchain.api.grpc.GetBlockByNumberRequestOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.acchain.GetBlockByNumberRequest)
bdchain.api.grpc.acchain.GetBlockByNumberRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetBlockByNumberRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByNumberRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetBlockByNumberRequest_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByNumberRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.GetBlockByNumberRequest.class, bdchain.api.grpc.GetBlockByNumberRequest.Builder.class);
bdchain.api.grpc.acchain.GetBlockByNumberRequest.class, bdchain.api.grpc.acchain.GetBlockByNumberRequest.Builder.class);
}
// Construct using bdchain.api.grpc.GetBlockByNumberRequest.newBuilder()
// Construct using bdchain.api.grpc.acchain.GetBlockByNumberRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -374,17 +371,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetBlockByNumberRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByNumberRequest_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.GetBlockByNumberRequest getDefaultInstanceForType() {
return bdchain.api.grpc.GetBlockByNumberRequest.getDefaultInstance();
public bdchain.api.grpc.acchain.GetBlockByNumberRequest getDefaultInstanceForType() {
return bdchain.api.grpc.acchain.GetBlockByNumberRequest.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.GetBlockByNumberRequest build() {
bdchain.api.grpc.GetBlockByNumberRequest result = buildPartial();
public bdchain.api.grpc.acchain.GetBlockByNumberRequest build() {
bdchain.api.grpc.acchain.GetBlockByNumberRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -392,8 +389,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.GetBlockByNumberRequest buildPartial() {
bdchain.api.grpc.GetBlockByNumberRequest result = new bdchain.api.grpc.GetBlockByNumberRequest(this);
public bdchain.api.grpc.acchain.GetBlockByNumberRequest buildPartial() {
bdchain.api.grpc.acchain.GetBlockByNumberRequest result = new bdchain.api.grpc.acchain.GetBlockByNumberRequest(this);
result.ledger_ = ledger_;
result.number_ = number_;
result.fullTransaction_ = fullTransaction_;
@ -403,48 +400,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.GetBlockByNumberRequest) {
return mergeFrom((bdchain.api.grpc.GetBlockByNumberRequest)other);
if (other instanceof bdchain.api.grpc.acchain.GetBlockByNumberRequest) {
return mergeFrom((bdchain.api.grpc.acchain.GetBlockByNumberRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.GetBlockByNumberRequest other) {
if (other == bdchain.api.grpc.GetBlockByNumberRequest.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.acchain.GetBlockByNumberRequest other) {
if (other == bdchain.api.grpc.acchain.GetBlockByNumberRequest.getDefaultInstance()) return this;
if (!other.getLedger().isEmpty()) {
ledger_ = other.ledger_;
onChanged();
@ -470,11 +467,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.GetBlockByNumberRequest parsedMessage = null;
bdchain.api.grpc.acchain.GetBlockByNumberRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.GetBlockByNumberRequest) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.acchain.GetBlockByNumberRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -607,7 +604,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -617,16 +614,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.GetBlockByNumberRequest)
// @@protoc_insertion_point(builder_scope:bdchain.api.acchain.GetBlockByNumberRequest)
}
// @@protoc_insertion_point(class_scope:bdchain.api.GetBlockByNumberRequest)
private static final bdchain.api.grpc.GetBlockByNumberRequest DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.acchain.GetBlockByNumberRequest)
private static final bdchain.api.grpc.acchain.GetBlockByNumberRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.GetBlockByNumberRequest();
DEFAULT_INSTANCE = new bdchain.api.grpc.acchain.GetBlockByNumberRequest();
}
public static bdchain.api.grpc.GetBlockByNumberRequest getDefaultInstance() {
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -651,7 +648,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.GetBlockByNumberRequest getDefaultInstanceForType() {
public bdchain.api.grpc.acchain.GetBlockByNumberRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
public interface GetBlockByNumberRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.GetBlockByNumberRequest)
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.GetBlockByNumberRequest)
com.google.protobuf.MessageOrBuilder {
/**

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
/**
* Protobuf type {@code bdchain.api.GetTransactionByBlockHashAndIndexRequest}
* Protobuf type {@code bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest}
*/
public final class GetTransactionByBlockHashAndIndexRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.GetTransactionByBlockHashAndIndexRequest)
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest)
GetTransactionByBlockHashAndIndexRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetTransactionByBlockHashAndIndexRequest.newBuilder() to construct.
@ -18,7 +18,6 @@ private static final long serialVersionUID = 0L;
private GetTransactionByBlockHashAndIndexRequest() {
ledger_ = "";
blockHash_ = com.google.protobuf.ByteString.EMPTY;
index_ = 0;
}
@java.lang.Override
@ -62,7 +61,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -82,15 +81,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByBlockHashAndIndexRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest.class, bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest.Builder.class);
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.class, bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.Builder.class);
}
public static final int LEDGER_FIELD_NUMBER = 1;
@ -198,20 +197,19 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest)) {
if (!(obj instanceof bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest)) {
return super.equals(obj);
}
bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest other = (bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest) obj;
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest other = (bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest) obj;
boolean result = true;
result = result && getLedger()
.equals(other.getLedger());
result = result && getBlockHash()
.equals(other.getBlockHash());
result = result && (getIndex()
== other.getIndex());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!getLedger()
.equals(other.getLedger())) return false;
if (!getBlockHash()
.equals(other.getBlockHash())) return false;
if (getIndex()
!= other.getIndex()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -232,69 +230,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest parseFrom(byte[] data)
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest parseDelimitedFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -307,7 +305,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest prototype) {
public static Builder newBuilder(bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -323,26 +321,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.GetTransactionByBlockHashAndIndexRequest}
* Protobuf type {@code bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.GetTransactionByBlockHashAndIndexRequest)
bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequestOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest)
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByBlockHashAndIndexRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest.class, bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest.Builder.class);
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.class, bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.Builder.class);
}
// Construct using bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest.newBuilder()
// Construct using bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -372,17 +370,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByBlockHashAndIndexRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest getDefaultInstanceForType() {
return bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest.getDefaultInstance();
public bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest getDefaultInstanceForType() {
return bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest build() {
bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest result = buildPartial();
public bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest build() {
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -390,8 +388,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest buildPartial() {
bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest result = new bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest(this);
public bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest buildPartial() {
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest result = new bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest(this);
result.ledger_ = ledger_;
result.blockHash_ = blockHash_;
result.index_ = index_;
@ -401,48 +399,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest) {
return mergeFrom((bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest)other);
if (other instanceof bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest) {
return mergeFrom((bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest other) {
if (other == bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest other) {
if (other == bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.getDefaultInstance()) return this;
if (!other.getLedger().isEmpty()) {
ledger_ = other.ledger_;
onChanged();
@ -468,11 +466,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest parsedMessage = null;
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -608,7 +606,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -618,16 +616,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.GetTransactionByBlockHashAndIndexRequest)
// @@protoc_insertion_point(builder_scope:bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest)
}
// @@protoc_insertion_point(class_scope:bdchain.api.GetTransactionByBlockHashAndIndexRequest)
private static final bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest)
private static final bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest();
DEFAULT_INSTANCE = new bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest();
}
public static bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest getDefaultInstance() {
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -652,7 +650,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.GetTransactionByBlockHashAndIndexRequest getDefaultInstanceForType() {
public bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
public interface GetTransactionByBlockHashAndIndexRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.GetTransactionByBlockHashAndIndexRequest)
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest)
com.google.protobuf.MessageOrBuilder {
/**

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
/**
* Protobuf type {@code bdchain.api.GetTransactionByBlockNumberAndIndexRequest}
* Protobuf type {@code bdchain.api.acchain.GetTransactionByBlockNumberAndIndexRequest}
*/
public final class GetTransactionByBlockNumberAndIndexRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.GetTransactionByBlockNumberAndIndexRequest)
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.GetTransactionByBlockNumberAndIndexRequest)
GetTransactionByBlockNumberAndIndexRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetTransactionByBlockNumberAndIndexRequest.newBuilder() to construct.
@ -17,8 +17,6 @@ private static final long serialVersionUID = 0L;
}
private GetTransactionByBlockNumberAndIndexRequest() {
ledger_ = "";
blockNumber_ = 0L;
index_ = 0;
}
@java.lang.Override
@ -62,7 +60,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -82,15 +80,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByBlockNumberAndIndexRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByBlockNumberAndIndexRequest_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest.class, bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest.Builder.class);
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.class, bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.Builder.class);
}
public static final int LEDGER_FIELD_NUMBER = 1;
@ -198,20 +196,19 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest)) {
if (!(obj instanceof bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest)) {
return super.equals(obj);
}
bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest other = (bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest) obj;
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest other = (bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest) obj;
boolean result = true;
result = result && getLedger()
.equals(other.getLedger());
result = result && (getBlockNumber()
== other.getBlockNumber());
result = result && (getIndex()
== other.getIndex());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!getLedger()
.equals(other.getLedger())) return false;
if (getBlockNumber()
!= other.getBlockNumber()) return false;
if (getIndex()
!= other.getIndex()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -233,69 +230,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest parseFrom(byte[] data)
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest parseDelimitedFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -308,7 +305,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest prototype) {
public static Builder newBuilder(bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -324,26 +321,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.GetTransactionByBlockNumberAndIndexRequest}
* Protobuf type {@code bdchain.api.acchain.GetTransactionByBlockNumberAndIndexRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.GetTransactionByBlockNumberAndIndexRequest)
bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequestOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.acchain.GetTransactionByBlockNumberAndIndexRequest)
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByBlockNumberAndIndexRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByBlockNumberAndIndexRequest_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest.class, bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest.Builder.class);
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.class, bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.Builder.class);
}
// Construct using bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest.newBuilder()
// Construct using bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -373,17 +370,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByBlockNumberAndIndexRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest getDefaultInstanceForType() {
return bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest.getDefaultInstance();
public bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest getDefaultInstanceForType() {
return bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest build() {
bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest result = buildPartial();
public bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest build() {
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -391,8 +388,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest buildPartial() {
bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest result = new bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest(this);
public bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest buildPartial() {
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest result = new bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest(this);
result.ledger_ = ledger_;
result.blockNumber_ = blockNumber_;
result.index_ = index_;
@ -402,48 +399,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest) {
return mergeFrom((bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest)other);
if (other instanceof bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest) {
return mergeFrom((bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest other) {
if (other == bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest other) {
if (other == bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.getDefaultInstance()) return this;
if (!other.getLedger().isEmpty()) {
ledger_ = other.ledger_;
onChanged();
@ -469,11 +466,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest parsedMessage = null;
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -606,7 +603,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -616,16 +613,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.GetTransactionByBlockNumberAndIndexRequest)
// @@protoc_insertion_point(builder_scope:bdchain.api.acchain.GetTransactionByBlockNumberAndIndexRequest)
}
// @@protoc_insertion_point(class_scope:bdchain.api.GetTransactionByBlockNumberAndIndexRequest)
private static final bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.acchain.GetTransactionByBlockNumberAndIndexRequest)
private static final bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest();
DEFAULT_INSTANCE = new bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest();
}
public static bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest getDefaultInstance() {
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -650,7 +647,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest getDefaultInstanceForType() {
public bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
public interface GetTransactionByBlockNumberAndIndexRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.GetTransactionByBlockNumberAndIndexRequest)
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.GetTransactionByBlockNumberAndIndexRequest)
com.google.protobuf.MessageOrBuilder {
/**

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
/**
* Protobuf type {@code bdchain.api.GetTransactionByHashRequest}
* Protobuf type {@code bdchain.api.acchain.GetTransactionByHashRequest}
*/
public final class GetTransactionByHashRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.GetTransactionByHashRequest)
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.GetTransactionByHashRequest)
GetTransactionByHashRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetTransactionByHashRequest.newBuilder() to construct.
@ -56,7 +56,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -76,15 +76,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByHashRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByHashRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByHashRequest_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.GetTransactionByHashRequest.class, bdchain.api.grpc.GetTransactionByHashRequest.Builder.class);
bdchain.api.grpc.acchain.GetTransactionByHashRequest.class, bdchain.api.grpc.acchain.GetTransactionByHashRequest.Builder.class);
}
public static final int LEDGER_FIELD_NUMBER = 1;
@ -176,18 +176,17 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.GetTransactionByHashRequest)) {
if (!(obj instanceof bdchain.api.grpc.acchain.GetTransactionByHashRequest)) {
return super.equals(obj);
}
bdchain.api.grpc.GetTransactionByHashRequest other = (bdchain.api.grpc.GetTransactionByHashRequest) obj;
bdchain.api.grpc.acchain.GetTransactionByHashRequest other = (bdchain.api.grpc.acchain.GetTransactionByHashRequest) obj;
boolean result = true;
result = result && getLedger()
.equals(other.getLedger());
result = result && getHash()
.equals(other.getHash());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!getLedger()
.equals(other.getLedger())) return false;
if (!getHash()
.equals(other.getHash())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -206,69 +205,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.GetTransactionByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetTransactionByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetTransactionByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByHashRequest parseFrom(byte[] data)
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetTransactionByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByHashRequest parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetTransactionByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByHashRequest parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetTransactionByHashRequest parseDelimitedFrom(
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.GetTransactionByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetTransactionByHashRequest parseFrom(
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -281,7 +280,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.GetTransactionByHashRequest prototype) {
public static Builder newBuilder(bdchain.api.grpc.acchain.GetTransactionByHashRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -297,26 +296,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.GetTransactionByHashRequest}
* Protobuf type {@code bdchain.api.acchain.GetTransactionByHashRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.GetTransactionByHashRequest)
bdchain.api.grpc.GetTransactionByHashRequestOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.acchain.GetTransactionByHashRequest)
bdchain.api.grpc.acchain.GetTransactionByHashRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByHashRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByHashRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByHashRequest_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByHashRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.GetTransactionByHashRequest.class, bdchain.api.grpc.GetTransactionByHashRequest.Builder.class);
bdchain.api.grpc.acchain.GetTransactionByHashRequest.class, bdchain.api.grpc.acchain.GetTransactionByHashRequest.Builder.class);
}
// Construct using bdchain.api.grpc.GetTransactionByHashRequest.newBuilder()
// Construct using bdchain.api.grpc.acchain.GetTransactionByHashRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -344,17 +343,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_GetTransactionByHashRequest_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByHashRequest_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.GetTransactionByHashRequest getDefaultInstanceForType() {
return bdchain.api.grpc.GetTransactionByHashRequest.getDefaultInstance();
public bdchain.api.grpc.acchain.GetTransactionByHashRequest getDefaultInstanceForType() {
return bdchain.api.grpc.acchain.GetTransactionByHashRequest.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.GetTransactionByHashRequest build() {
bdchain.api.grpc.GetTransactionByHashRequest result = buildPartial();
public bdchain.api.grpc.acchain.GetTransactionByHashRequest build() {
bdchain.api.grpc.acchain.GetTransactionByHashRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -362,8 +361,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.GetTransactionByHashRequest buildPartial() {
bdchain.api.grpc.GetTransactionByHashRequest result = new bdchain.api.grpc.GetTransactionByHashRequest(this);
public bdchain.api.grpc.acchain.GetTransactionByHashRequest buildPartial() {
bdchain.api.grpc.acchain.GetTransactionByHashRequest result = new bdchain.api.grpc.acchain.GetTransactionByHashRequest(this);
result.ledger_ = ledger_;
result.hash_ = hash_;
onBuilt();
@ -372,48 +371,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.GetTransactionByHashRequest) {
return mergeFrom((bdchain.api.grpc.GetTransactionByHashRequest)other);
if (other instanceof bdchain.api.grpc.acchain.GetTransactionByHashRequest) {
return mergeFrom((bdchain.api.grpc.acchain.GetTransactionByHashRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.GetTransactionByHashRequest other) {
if (other == bdchain.api.grpc.GetTransactionByHashRequest.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.acchain.GetTransactionByHashRequest other) {
if (other == bdchain.api.grpc.acchain.GetTransactionByHashRequest.getDefaultInstance()) return this;
if (!other.getLedger().isEmpty()) {
ledger_ = other.ledger_;
onChanged();
@ -436,11 +435,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.GetTransactionByHashRequest parsedMessage = null;
bdchain.api.grpc.acchain.GetTransactionByHashRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.GetTransactionByHashRequest) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.acchain.GetTransactionByHashRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -550,7 +549,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -560,16 +559,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.GetTransactionByHashRequest)
// @@protoc_insertion_point(builder_scope:bdchain.api.acchain.GetTransactionByHashRequest)
}
// @@protoc_insertion_point(class_scope:bdchain.api.GetTransactionByHashRequest)
private static final bdchain.api.grpc.GetTransactionByHashRequest DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.acchain.GetTransactionByHashRequest)
private static final bdchain.api.grpc.acchain.GetTransactionByHashRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.GetTransactionByHashRequest();
DEFAULT_INSTANCE = new bdchain.api.grpc.acchain.GetTransactionByHashRequest();
}
public static bdchain.api.grpc.GetTransactionByHashRequest getDefaultInstance() {
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -594,7 +593,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.GetTransactionByHashRequest getDefaultInstanceForType() {
public bdchain.api.grpc.acchain.GetTransactionByHashRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
public interface GetTransactionByHashRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.GetTransactionByHashRequest)
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.GetTransactionByHashRequest)
com.google.protobuf.MessageOrBuilder {
/**

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
/**
* Protobuf type {@code bdchain.api.Transaction}
* Protobuf type {@code bdchain.api.acchain.Transaction}
*/
public final class Transaction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.Transaction)
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.Transaction)
TransactionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Transaction.newBuilder() to construct.
@ -16,13 +16,10 @@ private static final long serialVersionUID = 0L;
super(builder);
}
private Transaction() {
blockNumber_ = 0L;
blockHash_ = com.google.protobuf.ByteString.EMPTY;
index_ = 0;
hash_ = com.google.protobuf.ByteString.EMPTY;
type_ = 0;
from_ = com.google.protobuf.ByteString.EMPTY;
nonce_ = 0L;
to_ = com.google.protobuf.ByteString.EMPTY;
data_ = com.google.protobuf.ByteString.EMPTY;
v_ = com.google.protobuf.ByteString.EMPTY;
@ -116,7 +113,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -136,15 +133,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_Transaction_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_Transaction_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.Transaction.class, bdchain.api.grpc.Transaction.Builder.class);
bdchain.api.grpc.acchain.Transaction.class, bdchain.api.grpc.acchain.Transaction.Builder.class);
}
public static final int BLOCK_NUMBER_FIELD_NUMBER = 1;
@ -206,7 +203,7 @@ private static final long serialVersionUID = 0L;
* 事务类型
* </pre>
*
* <code>.bdchain.api.TransactionType type = 5;</code>
* <code>.bdchain.api.common.TransactionType type = 5;</code>
*/
public int getTypeValue() {
return type_;
@ -216,12 +213,12 @@ private static final long serialVersionUID = 0L;
* 事务类型
* </pre>
*
* <code>.bdchain.api.TransactionType type = 5;</code>
* <code>.bdchain.api.common.TransactionType type = 5;</code>
*/
public bdchain.api.grpc.TransactionType getType() {
public bdchain.api.grpc.common.TransactionType getType() {
@SuppressWarnings("deprecation")
bdchain.api.grpc.TransactionType result = bdchain.api.grpc.TransactionType.valueOf(type_);
return result == null ? bdchain.api.grpc.TransactionType.UNRECOGNIZED : result;
bdchain.api.grpc.common.TransactionType result = bdchain.api.grpc.common.TransactionType.valueOf(type_);
return result == null ? bdchain.api.grpc.common.TransactionType.UNRECOGNIZED : result;
}
public static final int FROM_FIELD_NUMBER = 6;
@ -341,7 +338,7 @@ private static final long serialVersionUID = 0L;
if (!hash_.isEmpty()) {
output.writeBytes(4, hash_);
}
if (type_ != bdchain.api.grpc.TransactionType.RECORD.getNumber()) {
if (type_ != bdchain.api.grpc.common.TransactionType.RECORD.getNumber()) {
output.writeEnum(5, type_);
}
if (!from_.isEmpty()) {
@ -390,7 +387,7 @@ private static final long serialVersionUID = 0L;
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, hash_);
}
if (type_ != bdchain.api.grpc.TransactionType.RECORD.getNumber()) {
if (type_ != bdchain.api.grpc.common.TransactionType.RECORD.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, type_);
}
@ -432,37 +429,36 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.Transaction)) {
if (!(obj instanceof bdchain.api.grpc.acchain.Transaction)) {
return super.equals(obj);
}
bdchain.api.grpc.Transaction other = (bdchain.api.grpc.Transaction) obj;
bdchain.api.grpc.acchain.Transaction other = (bdchain.api.grpc.acchain.Transaction) obj;
boolean result = true;
result = result && (getBlockNumber()
== other.getBlockNumber());
result = result && getBlockHash()
.equals(other.getBlockHash());
result = result && (getIndex()
== other.getIndex());
result = result && getHash()
.equals(other.getHash());
result = result && type_ == other.type_;
result = result && getFrom()
.equals(other.getFrom());
result = result && (getNonce()
== other.getNonce());
result = result && getTo()
.equals(other.getTo());
result = result && getData()
.equals(other.getData());
result = result && getV()
.equals(other.getV());
result = result && getR()
.equals(other.getR());
result = result && getS()
.equals(other.getS());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (getBlockNumber()
!= other.getBlockNumber()) return false;
if (!getBlockHash()
.equals(other.getBlockHash())) return false;
if (getIndex()
!= other.getIndex()) return false;
if (!getHash()
.equals(other.getHash())) return false;
if (type_ != other.type_) return false;
if (!getFrom()
.equals(other.getFrom())) return false;
if (getNonce()
!= other.getNonce()) return false;
if (!getTo()
.equals(other.getTo())) return false;
if (!getData()
.equals(other.getData())) return false;
if (!getV()
.equals(other.getV())) return false;
if (!getR()
.equals(other.getR())) return false;
if (!getS()
.equals(other.getS())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -503,69 +499,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.Transaction parseFrom(
public static bdchain.api.grpc.acchain.Transaction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.Transaction parseFrom(
public static bdchain.api.grpc.acchain.Transaction parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.Transaction parseFrom(
public static bdchain.api.grpc.acchain.Transaction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.Transaction parseFrom(
public static bdchain.api.grpc.acchain.Transaction parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.Transaction parseFrom(byte[] data)
public static bdchain.api.grpc.acchain.Transaction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.Transaction parseFrom(
public static bdchain.api.grpc.acchain.Transaction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.Transaction parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.Transaction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.Transaction parseFrom(
public static bdchain.api.grpc.acchain.Transaction parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.Transaction parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.acchain.Transaction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.Transaction parseDelimitedFrom(
public static bdchain.api.grpc.acchain.Transaction parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.Transaction parseFrom(
public static bdchain.api.grpc.acchain.Transaction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.Transaction parseFrom(
public static bdchain.api.grpc.acchain.Transaction parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -578,7 +574,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.Transaction prototype) {
public static Builder newBuilder(bdchain.api.grpc.acchain.Transaction prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -594,26 +590,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.Transaction}
* Protobuf type {@code bdchain.api.acchain.Transaction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.Transaction)
bdchain.api.grpc.TransactionOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.acchain.Transaction)
bdchain.api.grpc.acchain.TransactionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_Transaction_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_Transaction_fieldAccessorTable
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.Transaction.class, bdchain.api.grpc.Transaction.Builder.class);
bdchain.api.grpc.acchain.Transaction.class, bdchain.api.grpc.acchain.Transaction.Builder.class);
}
// Construct using bdchain.api.grpc.Transaction.newBuilder()
// Construct using bdchain.api.grpc.acchain.Transaction.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -661,17 +657,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.AccountingChainProto.internal_static_bdchain_api_Transaction_descriptor;
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_Transaction_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.Transaction getDefaultInstanceForType() {
return bdchain.api.grpc.Transaction.getDefaultInstance();
public bdchain.api.grpc.acchain.Transaction getDefaultInstanceForType() {
return bdchain.api.grpc.acchain.Transaction.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.Transaction build() {
bdchain.api.grpc.Transaction result = buildPartial();
public bdchain.api.grpc.acchain.Transaction build() {
bdchain.api.grpc.acchain.Transaction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -679,8 +675,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.Transaction buildPartial() {
bdchain.api.grpc.Transaction result = new bdchain.api.grpc.Transaction(this);
public bdchain.api.grpc.acchain.Transaction buildPartial() {
bdchain.api.grpc.acchain.Transaction result = new bdchain.api.grpc.acchain.Transaction(this);
result.blockNumber_ = blockNumber_;
result.blockHash_ = blockHash_;
result.index_ = index_;
@ -699,48 +695,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.Transaction) {
return mergeFrom((bdchain.api.grpc.Transaction)other);
if (other instanceof bdchain.api.grpc.acchain.Transaction) {
return mergeFrom((bdchain.api.grpc.acchain.Transaction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.Transaction other) {
if (other == bdchain.api.grpc.Transaction.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.acchain.Transaction other) {
if (other == bdchain.api.grpc.acchain.Transaction.getDefaultInstance()) return this;
if (other.getBlockNumber() != 0L) {
setBlockNumber(other.getBlockNumber());
}
@ -792,11 +788,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.Transaction parsedMessage = null;
bdchain.api.grpc.acchain.Transaction parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.Transaction) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.acchain.Transaction) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -970,7 +966,7 @@ private static final long serialVersionUID = 0L;
* 事务类型
* </pre>
*
* <code>.bdchain.api.TransactionType type = 5;</code>
* <code>.bdchain.api.common.TransactionType type = 5;</code>
*/
public int getTypeValue() {
return type_;
@ -980,7 +976,7 @@ private static final long serialVersionUID = 0L;
* 事务类型
* </pre>
*
* <code>.bdchain.api.TransactionType type = 5;</code>
* <code>.bdchain.api.common.TransactionType type = 5;</code>
*/
public Builder setTypeValue(int value) {
type_ = value;
@ -992,21 +988,21 @@ private static final long serialVersionUID = 0L;
* 事务类型
* </pre>
*
* <code>.bdchain.api.TransactionType type = 5;</code>
* <code>.bdchain.api.common.TransactionType type = 5;</code>
*/
public bdchain.api.grpc.TransactionType getType() {
public bdchain.api.grpc.common.TransactionType getType() {
@SuppressWarnings("deprecation")
bdchain.api.grpc.TransactionType result = bdchain.api.grpc.TransactionType.valueOf(type_);
return result == null ? bdchain.api.grpc.TransactionType.UNRECOGNIZED : result;
bdchain.api.grpc.common.TransactionType result = bdchain.api.grpc.common.TransactionType.valueOf(type_);
return result == null ? bdchain.api.grpc.common.TransactionType.UNRECOGNIZED : result;
}
/**
* <pre>
* 事务类型
* </pre>
*
* <code>.bdchain.api.TransactionType type = 5;</code>
* <code>.bdchain.api.common.TransactionType type = 5;</code>
*/
public Builder setType(bdchain.api.grpc.TransactionType value) {
public Builder setType(bdchain.api.grpc.common.TransactionType value) {
if (value == null) {
throw new NullPointerException();
}
@ -1020,7 +1016,7 @@ private static final long serialVersionUID = 0L;
* 事务类型
* </pre>
*
* <code>.bdchain.api.TransactionType type = 5;</code>
* <code>.bdchain.api.common.TransactionType type = 5;</code>
*/
public Builder clearType() {
@ -1315,7 +1311,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -1325,16 +1321,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.Transaction)
// @@protoc_insertion_point(builder_scope:bdchain.api.acchain.Transaction)
}
// @@protoc_insertion_point(class_scope:bdchain.api.Transaction)
private static final bdchain.api.grpc.Transaction DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.acchain.Transaction)
private static final bdchain.api.grpc.acchain.Transaction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.Transaction();
DEFAULT_INSTANCE = new bdchain.api.grpc.acchain.Transaction();
}
public static bdchain.api.grpc.Transaction getDefaultInstance() {
public static bdchain.api.grpc.acchain.Transaction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -1359,7 +1355,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.Transaction getDefaultInstanceForType() {
public bdchain.api.grpc.acchain.Transaction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/ac_chain.proto
package bdchain.api.grpc;
package bdchain.api.grpc.acchain;
public interface TransactionOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.Transaction)
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.Transaction)
com.google.protobuf.MessageOrBuilder {
/**
@ -48,7 +48,7 @@ public interface TransactionOrBuilder extends
* 事务类型
* </pre>
*
* <code>.bdchain.api.TransactionType type = 5;</code>
* <code>.bdchain.api.common.TransactionType type = 5;</code>
*/
int getTypeValue();
/**
@ -56,9 +56,9 @@ public interface TransactionOrBuilder extends
* 事务类型
* </pre>
*
* <code>.bdchain.api.TransactionType type = 5;</code>
* <code>.bdchain.api.common.TransactionType type = 5;</code>
*/
bdchain.api.grpc.TransactionType getType();
bdchain.api.grpc.common.TransactionType getType();
/**
* <pre>

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/common.proto
package bdchain.api.grpc;
package bdchain.api.grpc.common;
/**
* Protobuf type {@code bdchain.api.ClientVersionResponse}
* Protobuf type {@code bdchain.api.common.ClientVersionResponse}
*/
public final class ClientVersionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.ClientVersionResponse)
// @@protoc_insertion_point(message_implements:bdchain.api.common.ClientVersionResponse)
ClientVersionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientVersionResponse.newBuilder() to construct.
@ -50,7 +50,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -70,15 +70,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.CommonProto.internal_static_bdchain_api_ClientVersionResponse_descriptor;
return bdchain.api.grpc.common.CommonProto.internal_static_bdchain_api_common_ClientVersionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.CommonProto.internal_static_bdchain_api_ClientVersionResponse_fieldAccessorTable
return bdchain.api.grpc.common.CommonProto.internal_static_bdchain_api_common_ClientVersionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.ClientVersionResponse.class, bdchain.api.grpc.ClientVersionResponse.Builder.class);
bdchain.api.grpc.common.ClientVersionResponse.class, bdchain.api.grpc.common.ClientVersionResponse.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
@ -162,16 +162,15 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.ClientVersionResponse)) {
if (!(obj instanceof bdchain.api.grpc.common.ClientVersionResponse)) {
return super.equals(obj);
}
bdchain.api.grpc.ClientVersionResponse other = (bdchain.api.grpc.ClientVersionResponse) obj;
bdchain.api.grpc.common.ClientVersionResponse other = (bdchain.api.grpc.common.ClientVersionResponse) obj;
boolean result = true;
result = result && getVersion()
.equals(other.getVersion());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!getVersion()
.equals(other.getVersion())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -188,69 +187,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.ClientVersionResponse parseFrom(
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.ClientVersionResponse parseFrom(
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.ClientVersionResponse parseFrom(
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.ClientVersionResponse parseFrom(
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.ClientVersionResponse parseFrom(byte[] data)
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.ClientVersionResponse parseFrom(
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.ClientVersionResponse parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.ClientVersionResponse parseFrom(
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.ClientVersionResponse parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.common.ClientVersionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.ClientVersionResponse parseDelimitedFrom(
public static bdchain.api.grpc.common.ClientVersionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.ClientVersionResponse parseFrom(
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.ClientVersionResponse parseFrom(
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -263,7 +262,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.ClientVersionResponse prototype) {
public static Builder newBuilder(bdchain.api.grpc.common.ClientVersionResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -279,26 +278,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.ClientVersionResponse}
* Protobuf type {@code bdchain.api.common.ClientVersionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.ClientVersionResponse)
bdchain.api.grpc.ClientVersionResponseOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.common.ClientVersionResponse)
bdchain.api.grpc.common.ClientVersionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.CommonProto.internal_static_bdchain_api_ClientVersionResponse_descriptor;
return bdchain.api.grpc.common.CommonProto.internal_static_bdchain_api_common_ClientVersionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.CommonProto.internal_static_bdchain_api_ClientVersionResponse_fieldAccessorTable
return bdchain.api.grpc.common.CommonProto.internal_static_bdchain_api_common_ClientVersionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.ClientVersionResponse.class, bdchain.api.grpc.ClientVersionResponse.Builder.class);
bdchain.api.grpc.common.ClientVersionResponse.class, bdchain.api.grpc.common.ClientVersionResponse.Builder.class);
}
// Construct using bdchain.api.grpc.ClientVersionResponse.newBuilder()
// Construct using bdchain.api.grpc.common.ClientVersionResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -324,17 +323,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.CommonProto.internal_static_bdchain_api_ClientVersionResponse_descriptor;
return bdchain.api.grpc.common.CommonProto.internal_static_bdchain_api_common_ClientVersionResponse_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.ClientVersionResponse getDefaultInstanceForType() {
return bdchain.api.grpc.ClientVersionResponse.getDefaultInstance();
public bdchain.api.grpc.common.ClientVersionResponse getDefaultInstanceForType() {
return bdchain.api.grpc.common.ClientVersionResponse.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.ClientVersionResponse build() {
bdchain.api.grpc.ClientVersionResponse result = buildPartial();
public bdchain.api.grpc.common.ClientVersionResponse build() {
bdchain.api.grpc.common.ClientVersionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -342,8 +341,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.ClientVersionResponse buildPartial() {
bdchain.api.grpc.ClientVersionResponse result = new bdchain.api.grpc.ClientVersionResponse(this);
public bdchain.api.grpc.common.ClientVersionResponse buildPartial() {
bdchain.api.grpc.common.ClientVersionResponse result = new bdchain.api.grpc.common.ClientVersionResponse(this);
result.version_ = version_;
onBuilt();
return result;
@ -351,48 +350,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.ClientVersionResponse) {
return mergeFrom((bdchain.api.grpc.ClientVersionResponse)other);
if (other instanceof bdchain.api.grpc.common.ClientVersionResponse) {
return mergeFrom((bdchain.api.grpc.common.ClientVersionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.ClientVersionResponse other) {
if (other == bdchain.api.grpc.ClientVersionResponse.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.common.ClientVersionResponse other) {
if (other == bdchain.api.grpc.common.ClientVersionResponse.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
@ -412,11 +411,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.ClientVersionResponse parsedMessage = null;
bdchain.api.grpc.common.ClientVersionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.ClientVersionResponse) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.common.ClientVersionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -517,7 +516,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -527,16 +526,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.ClientVersionResponse)
// @@protoc_insertion_point(builder_scope:bdchain.api.common.ClientVersionResponse)
}
// @@protoc_insertion_point(class_scope:bdchain.api.ClientVersionResponse)
private static final bdchain.api.grpc.ClientVersionResponse DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.common.ClientVersionResponse)
private static final bdchain.api.grpc.common.ClientVersionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.ClientVersionResponse();
DEFAULT_INSTANCE = new bdchain.api.grpc.common.ClientVersionResponse();
}
public static bdchain.api.grpc.ClientVersionResponse getDefaultInstance() {
public static bdchain.api.grpc.common.ClientVersionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -561,7 +560,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.ClientVersionResponse getDefaultInstanceForType() {
public bdchain.api.grpc.common.ClientVersionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/common.proto
package bdchain.api.grpc;
package bdchain.api.grpc.common;
public interface ClientVersionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.ClientVersionResponse)
// @@protoc_insertion_point(interface_extends:bdchain.api.common.ClientVersionResponse)
com.google.protobuf.MessageOrBuilder {
/**

View File

@ -1,7 +1,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/common.proto
package bdchain.api.grpc;
package bdchain.api.grpc.common;
public final class CommonProto {
private CommonProto() {}
@ -15,10 +15,10 @@ public final class CommonProto {
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_ClientVersionResponse_descriptor;
internal_static_bdchain_api_common_ClientVersionResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_ClientVersionResponse_fieldAccessorTable;
internal_static_bdchain_api_common_ClientVersionResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
@ -28,13 +28,13 @@ public final class CommonProto {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\030bdchain/api/common.proto\022\013bdchain.api\"" +
"(\n\025ClientVersionResponse\022\017\n\007version\030\001 \001(" +
"\t*o\n\017TransactionType\022\n\n\006RECORD\020\000\022\013\n\007MESS" +
"AGE\020\001\022\025\n\021CONTRACT_CREATION\020\002\022\027\n\023CONTRACT" +
"_INVOCATION\020\003\022\023\n\017CONTRACT_STATUS\020\004B>\n\020bd" +
"chain.api.grpcB\013CommonProtoP\001Z\033bdchain/s" +
"dk/api/grpc/commonb\006proto3"
"\n\030bdchain/api/common.proto\022\022bdchain.api." +
"common\"(\n\025ClientVersionResponse\022\017\n\007versi" +
"on\030\001 \001(\t*o\n\017TransactionType\022\n\n\006RECORD\020\000\022" +
"\013\n\007MESSAGE\020\001\022\025\n\021CONTRACT_CREATION\020\002\022\027\n\023C" +
"ONTRACT_INVOCATION\020\003\022\023\n\017CONTRACT_STATUS\020" +
"\004BE\n\027bdchain.api.grpc.commonB\013CommonProt" +
"oP\001Z\033bdchain/sdk/api/grpc/commonb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
@ -48,11 +48,11 @@ public final class CommonProto {
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_bdchain_api_ClientVersionResponse_descriptor =
internal_static_bdchain_api_common_ClientVersionResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_bdchain_api_ClientVersionResponse_fieldAccessorTable = new
internal_static_bdchain_api_common_ClientVersionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_ClientVersionResponse_descriptor,
internal_static_bdchain_api_common_ClientVersionResponse_descriptor,
new java.lang.String[] { "Version", });
}

View File

@ -1,7 +1,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/error_details.proto
package bdchain.api.grpc;
package bdchain.api.grpc.common;
public final class ErrorDetailsProto {
private ErrorDetailsProto() {}
@ -15,15 +15,15 @@ public final class ErrorDetailsProto {
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_InvalidArgument_descriptor;
internal_static_bdchain_api_common_InvalidArgument_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_InvalidArgument_fieldAccessorTable;
internal_static_bdchain_api_common_InvalidArgument_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_InvalidArgument_FieldViolation_descriptor;
internal_static_bdchain_api_common_InvalidArgument_FieldViolation_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_InvalidArgument_FieldViolation_fieldAccessorTable;
internal_static_bdchain_api_common_InvalidArgument_FieldViolation_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
@ -33,13 +33,14 @@ public final class ErrorDetailsProto {
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\037bdchain/api/error_details.proto\022\013bdcha" +
"in.api\"\216\001\n\017InvalidArgument\022E\n\020field_viol" +
"ations\030\001 \003(\0132+.bdchain.api.InvalidArgume" +
"nt.FieldViolation\0324\n\016FieldViolation\022\r\n\005f" +
"ield\030\001 \001(\t\022\023\n\013description\030\002 \001(\tBH\n\020bdcha" +
"in.api.grpcB\021ErrorDetailsProtoP\001Z\037bdchai" +
"n/sdk/api/grpc/errdetailsb\006proto3"
"\n\037bdchain/api/error_details.proto\022\022bdcha" +
"in.api.common\"\225\001\n\017InvalidArgument\022L\n\020fie" +
"ld_violations\030\001 \003(\01322.bdchain.api.common" +
".InvalidArgument.FieldViolation\0324\n\016Field" +
"Violation\022\r\n\005field\030\001 \001(\t\022\023\n\013description\030" +
"\002 \001(\tBO\n\027bdchain.api.grpc.commonB\021ErrorD" +
"etailsProtoP\001Z\037bdchain/sdk/api/grpc/errd" +
"etailsb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
@ -53,17 +54,17 @@ public final class ErrorDetailsProto {
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_bdchain_api_InvalidArgument_descriptor =
internal_static_bdchain_api_common_InvalidArgument_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_bdchain_api_InvalidArgument_fieldAccessorTable = new
internal_static_bdchain_api_common_InvalidArgument_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_InvalidArgument_descriptor,
internal_static_bdchain_api_common_InvalidArgument_descriptor,
new java.lang.String[] { "FieldViolations", });
internal_static_bdchain_api_InvalidArgument_FieldViolation_descriptor =
internal_static_bdchain_api_InvalidArgument_descriptor.getNestedTypes().get(0);
internal_static_bdchain_api_InvalidArgument_FieldViolation_fieldAccessorTable = new
internal_static_bdchain_api_common_InvalidArgument_FieldViolation_descriptor =
internal_static_bdchain_api_common_InvalidArgument_descriptor.getNestedTypes().get(0);
internal_static_bdchain_api_common_InvalidArgument_FieldViolation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_InvalidArgument_FieldViolation_descriptor,
internal_static_bdchain_api_common_InvalidArgument_FieldViolation_descriptor,
new java.lang.String[] { "Field", "Description", });
}

View File

@ -1,7 +1,7 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/error_details.proto
package bdchain.api.grpc;
package bdchain.api.grpc.common;
/**
* <pre>
@ -11,11 +11,11 @@ package bdchain.api.grpc;
* (e.g., a malformed file name).
* </pre>
*
* Protobuf type {@code bdchain.api.InvalidArgument}
* Protobuf type {@code bdchain.api.common.InvalidArgument}
*/
public final class InvalidArgument extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.InvalidArgument)
// @@protoc_insertion_point(message_implements:bdchain.api.common.InvalidArgument)
InvalidArgumentOrBuilder {
private static final long serialVersionUID = 0L;
// Use InvalidArgument.newBuilder() to construct.
@ -51,16 +51,16 @@ private static final long serialVersionUID = 0L;
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
fieldViolations_ = new java.util.ArrayList<bdchain.api.grpc.InvalidArgument.FieldViolation>();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
fieldViolations_ = new java.util.ArrayList<bdchain.api.grpc.common.InvalidArgument.FieldViolation>();
mutable_bitField0_ |= 0x00000001;
}
fieldViolations_.add(
input.readMessage(bdchain.api.grpc.InvalidArgument.FieldViolation.parser(), extensionRegistry));
input.readMessage(bdchain.api.grpc.common.InvalidArgument.FieldViolation.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -74,7 +74,7 @@ private static final long serialVersionUID = 0L;
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
fieldViolations_ = java.util.Collections.unmodifiableList(fieldViolations_);
}
this.unknownFields = unknownFields.build();
@ -83,19 +83,19 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.ErrorDetailsProto.internal_static_bdchain_api_InvalidArgument_descriptor;
return bdchain.api.grpc.common.ErrorDetailsProto.internal_static_bdchain_api_common_InvalidArgument_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.ErrorDetailsProto.internal_static_bdchain_api_InvalidArgument_fieldAccessorTable
return bdchain.api.grpc.common.ErrorDetailsProto.internal_static_bdchain_api_common_InvalidArgument_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.InvalidArgument.class, bdchain.api.grpc.InvalidArgument.Builder.class);
bdchain.api.grpc.common.InvalidArgument.class, bdchain.api.grpc.common.InvalidArgument.Builder.class);
}
public interface FieldViolationOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.InvalidArgument.FieldViolation)
// @@protoc_insertion_point(interface_extends:bdchain.api.common.InvalidArgument.FieldViolation)
com.google.protobuf.MessageOrBuilder {
/**
@ -143,11 +143,11 @@ private static final long serialVersionUID = 0L;
* A message type used to describe a single invalid field.
* </pre>
*
* Protobuf type {@code bdchain.api.InvalidArgument.FieldViolation}
* Protobuf type {@code bdchain.api.common.InvalidArgument.FieldViolation}
*/
public static final class FieldViolation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.InvalidArgument.FieldViolation)
// @@protoc_insertion_point(message_implements:bdchain.api.common.InvalidArgument.FieldViolation)
FieldViolationOrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldViolation.newBuilder() to construct.
@ -196,7 +196,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -216,15 +216,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.ErrorDetailsProto.internal_static_bdchain_api_InvalidArgument_FieldViolation_descriptor;
return bdchain.api.grpc.common.ErrorDetailsProto.internal_static_bdchain_api_common_InvalidArgument_FieldViolation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.ErrorDetailsProto.internal_static_bdchain_api_InvalidArgument_FieldViolation_fieldAccessorTable
return bdchain.api.grpc.common.ErrorDetailsProto.internal_static_bdchain_api_common_InvalidArgument_FieldViolation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.InvalidArgument.FieldViolation.class, bdchain.api.grpc.InvalidArgument.FieldViolation.Builder.class);
bdchain.api.grpc.common.InvalidArgument.FieldViolation.class, bdchain.api.grpc.common.InvalidArgument.FieldViolation.Builder.class);
}
public static final int FIELD_FIELD_NUMBER = 1;
@ -360,18 +360,17 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.InvalidArgument.FieldViolation)) {
if (!(obj instanceof bdchain.api.grpc.common.InvalidArgument.FieldViolation)) {
return super.equals(obj);
}
bdchain.api.grpc.InvalidArgument.FieldViolation other = (bdchain.api.grpc.InvalidArgument.FieldViolation) obj;
bdchain.api.grpc.common.InvalidArgument.FieldViolation other = (bdchain.api.grpc.common.InvalidArgument.FieldViolation) obj;
boolean result = true;
result = result && getField()
.equals(other.getField());
result = result && getDescription()
.equals(other.getDescription());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!getField()
.equals(other.getField())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -390,69 +389,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.InvalidArgument.FieldViolation parseFrom(
public static bdchain.api.grpc.common.InvalidArgument.FieldViolation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.InvalidArgument.FieldViolation parseFrom(
public static bdchain.api.grpc.common.InvalidArgument.FieldViolation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.InvalidArgument.FieldViolation parseFrom(
public static bdchain.api.grpc.common.InvalidArgument.FieldViolation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.InvalidArgument.FieldViolation parseFrom(
public static bdchain.api.grpc.common.InvalidArgument.FieldViolation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.InvalidArgument.FieldViolation parseFrom(byte[] data)
public static bdchain.api.grpc.common.InvalidArgument.FieldViolation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.InvalidArgument.FieldViolation parseFrom(
public static bdchain.api.grpc.common.InvalidArgument.FieldViolation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.InvalidArgument.FieldViolation parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.common.InvalidArgument.FieldViolation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.InvalidArgument.FieldViolation parseFrom(
public static bdchain.api.grpc.common.InvalidArgument.FieldViolation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.InvalidArgument.FieldViolation parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.common.InvalidArgument.FieldViolation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.InvalidArgument.FieldViolation parseDelimitedFrom(
public static bdchain.api.grpc.common.InvalidArgument.FieldViolation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.InvalidArgument.FieldViolation parseFrom(
public static bdchain.api.grpc.common.InvalidArgument.FieldViolation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.InvalidArgument.FieldViolation parseFrom(
public static bdchain.api.grpc.common.InvalidArgument.FieldViolation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -465,7 +464,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.InvalidArgument.FieldViolation prototype) {
public static Builder newBuilder(bdchain.api.grpc.common.InvalidArgument.FieldViolation prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -485,26 +484,26 @@ private static final long serialVersionUID = 0L;
* A message type used to describe a single invalid field.
* </pre>
*
* Protobuf type {@code bdchain.api.InvalidArgument.FieldViolation}
* Protobuf type {@code bdchain.api.common.InvalidArgument.FieldViolation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.InvalidArgument.FieldViolation)
bdchain.api.grpc.InvalidArgument.FieldViolationOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.common.InvalidArgument.FieldViolation)
bdchain.api.grpc.common.InvalidArgument.FieldViolationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.ErrorDetailsProto.internal_static_bdchain_api_InvalidArgument_FieldViolation_descriptor;
return bdchain.api.grpc.common.ErrorDetailsProto.internal_static_bdchain_api_common_InvalidArgument_FieldViolation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.ErrorDetailsProto.internal_static_bdchain_api_InvalidArgument_FieldViolation_fieldAccessorTable
return bdchain.api.grpc.common.ErrorDetailsProto.internal_static_bdchain_api_common_InvalidArgument_FieldViolation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.InvalidArgument.FieldViolation.class, bdchain.api.grpc.InvalidArgument.FieldViolation.Builder.class);
bdchain.api.grpc.common.InvalidArgument.FieldViolation.class, bdchain.api.grpc.common.InvalidArgument.FieldViolation.Builder.class);
}
// Construct using bdchain.api.grpc.InvalidArgument.FieldViolation.newBuilder()
// Construct using bdchain.api.grpc.common.InvalidArgument.FieldViolation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -532,17 +531,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.ErrorDetailsProto.internal_static_bdchain_api_InvalidArgument_FieldViolation_descriptor;
return bdchain.api.grpc.common.ErrorDetailsProto.internal_static_bdchain_api_common_InvalidArgument_FieldViolation_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.InvalidArgument.FieldViolation getDefaultInstanceForType() {
return bdchain.api.grpc.InvalidArgument.FieldViolation.getDefaultInstance();
public bdchain.api.grpc.common.InvalidArgument.FieldViolation getDefaultInstanceForType() {
return bdchain.api.grpc.common.InvalidArgument.FieldViolation.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.InvalidArgument.FieldViolation build() {
bdchain.api.grpc.InvalidArgument.FieldViolation result = buildPartial();
public bdchain.api.grpc.common.InvalidArgument.FieldViolation build() {
bdchain.api.grpc.common.InvalidArgument.FieldViolation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -550,8 +549,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.InvalidArgument.FieldViolation buildPartial() {
bdchain.api.grpc.InvalidArgument.FieldViolation result = new bdchain.api.grpc.InvalidArgument.FieldViolation(this);
public bdchain.api.grpc.common.InvalidArgument.FieldViolation buildPartial() {
bdchain.api.grpc.common.InvalidArgument.FieldViolation result = new bdchain.api.grpc.common.InvalidArgument.FieldViolation(this);
result.field_ = field_;
result.description_ = description_;
onBuilt();
@ -560,48 +559,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.InvalidArgument.FieldViolation) {
return mergeFrom((bdchain.api.grpc.InvalidArgument.FieldViolation)other);
if (other instanceof bdchain.api.grpc.common.InvalidArgument.FieldViolation) {
return mergeFrom((bdchain.api.grpc.common.InvalidArgument.FieldViolation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.InvalidArgument.FieldViolation other) {
if (other == bdchain.api.grpc.InvalidArgument.FieldViolation.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.common.InvalidArgument.FieldViolation other) {
if (other == bdchain.api.grpc.common.InvalidArgument.FieldViolation.getDefaultInstance()) return this;
if (!other.getField().isEmpty()) {
field_ = other.field_;
onChanged();
@ -625,11 +624,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.InvalidArgument.FieldViolation parsedMessage = null;
bdchain.api.grpc.common.InvalidArgument.FieldViolation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.InvalidArgument.FieldViolation) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.common.InvalidArgument.FieldViolation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -829,7 +828,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -839,16 +838,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.InvalidArgument.FieldViolation)
// @@protoc_insertion_point(builder_scope:bdchain.api.common.InvalidArgument.FieldViolation)
}
// @@protoc_insertion_point(class_scope:bdchain.api.InvalidArgument.FieldViolation)
private static final bdchain.api.grpc.InvalidArgument.FieldViolation DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.common.InvalidArgument.FieldViolation)
private static final bdchain.api.grpc.common.InvalidArgument.FieldViolation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.InvalidArgument.FieldViolation();
DEFAULT_INSTANCE = new bdchain.api.grpc.common.InvalidArgument.FieldViolation();
}
public static bdchain.api.grpc.InvalidArgument.FieldViolation getDefaultInstance() {
public static bdchain.api.grpc.common.InvalidArgument.FieldViolation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -873,22 +872,22 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.InvalidArgument.FieldViolation getDefaultInstanceForType() {
public bdchain.api.grpc.common.InvalidArgument.FieldViolation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int FIELD_VIOLATIONS_FIELD_NUMBER = 1;
private java.util.List<bdchain.api.grpc.InvalidArgument.FieldViolation> fieldViolations_;
private java.util.List<bdchain.api.grpc.common.InvalidArgument.FieldViolation> fieldViolations_;
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public java.util.List<bdchain.api.grpc.InvalidArgument.FieldViolation> getFieldViolationsList() {
public java.util.List<bdchain.api.grpc.common.InvalidArgument.FieldViolation> getFieldViolationsList() {
return fieldViolations_;
}
/**
@ -896,9 +895,9 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public java.util.List<? extends bdchain.api.grpc.InvalidArgument.FieldViolationOrBuilder>
public java.util.List<? extends bdchain.api.grpc.common.InvalidArgument.FieldViolationOrBuilder>
getFieldViolationsOrBuilderList() {
return fieldViolations_;
}
@ -907,7 +906,7 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public int getFieldViolationsCount() {
return fieldViolations_.size();
@ -917,9 +916,9 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public bdchain.api.grpc.InvalidArgument.FieldViolation getFieldViolations(int index) {
public bdchain.api.grpc.common.InvalidArgument.FieldViolation getFieldViolations(int index) {
return fieldViolations_.get(index);
}
/**
@ -927,9 +926,9 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public bdchain.api.grpc.InvalidArgument.FieldViolationOrBuilder getFieldViolationsOrBuilder(
public bdchain.api.grpc.common.InvalidArgument.FieldViolationOrBuilder getFieldViolationsOrBuilder(
int index) {
return fieldViolations_.get(index);
}
@ -974,16 +973,15 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.InvalidArgument)) {
if (!(obj instanceof bdchain.api.grpc.common.InvalidArgument)) {
return super.equals(obj);
}
bdchain.api.grpc.InvalidArgument other = (bdchain.api.grpc.InvalidArgument) obj;
bdchain.api.grpc.common.InvalidArgument other = (bdchain.api.grpc.common.InvalidArgument) obj;
boolean result = true;
result = result && getFieldViolationsList()
.equals(other.getFieldViolationsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!getFieldViolationsList()
.equals(other.getFieldViolationsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -1002,69 +1000,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.InvalidArgument parseFrom(
public static bdchain.api.grpc.common.InvalidArgument parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.InvalidArgument parseFrom(
public static bdchain.api.grpc.common.InvalidArgument parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.InvalidArgument parseFrom(
public static bdchain.api.grpc.common.InvalidArgument parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.InvalidArgument parseFrom(
public static bdchain.api.grpc.common.InvalidArgument parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.InvalidArgument parseFrom(byte[] data)
public static bdchain.api.grpc.common.InvalidArgument parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.InvalidArgument parseFrom(
public static bdchain.api.grpc.common.InvalidArgument parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.InvalidArgument parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.common.InvalidArgument parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.InvalidArgument parseFrom(
public static bdchain.api.grpc.common.InvalidArgument parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.InvalidArgument parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.common.InvalidArgument parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.InvalidArgument parseDelimitedFrom(
public static bdchain.api.grpc.common.InvalidArgument parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.InvalidArgument parseFrom(
public static bdchain.api.grpc.common.InvalidArgument parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.InvalidArgument parseFrom(
public static bdchain.api.grpc.common.InvalidArgument parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -1077,7 +1075,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.InvalidArgument prototype) {
public static Builder newBuilder(bdchain.api.grpc.common.InvalidArgument prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -1100,26 +1098,26 @@ private static final long serialVersionUID = 0L;
* (e.g., a malformed file name).
* </pre>
*
* Protobuf type {@code bdchain.api.InvalidArgument}
* Protobuf type {@code bdchain.api.common.InvalidArgument}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.InvalidArgument)
bdchain.api.grpc.InvalidArgumentOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.common.InvalidArgument)
bdchain.api.grpc.common.InvalidArgumentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.ErrorDetailsProto.internal_static_bdchain_api_InvalidArgument_descriptor;
return bdchain.api.grpc.common.ErrorDetailsProto.internal_static_bdchain_api_common_InvalidArgument_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.ErrorDetailsProto.internal_static_bdchain_api_InvalidArgument_fieldAccessorTable
return bdchain.api.grpc.common.ErrorDetailsProto.internal_static_bdchain_api_common_InvalidArgument_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.InvalidArgument.class, bdchain.api.grpc.InvalidArgument.Builder.class);
bdchain.api.grpc.common.InvalidArgument.class, bdchain.api.grpc.common.InvalidArgument.Builder.class);
}
// Construct using bdchain.api.grpc.InvalidArgument.newBuilder()
// Construct using bdchain.api.grpc.common.InvalidArgument.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -1150,17 +1148,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.ErrorDetailsProto.internal_static_bdchain_api_InvalidArgument_descriptor;
return bdchain.api.grpc.common.ErrorDetailsProto.internal_static_bdchain_api_common_InvalidArgument_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.InvalidArgument getDefaultInstanceForType() {
return bdchain.api.grpc.InvalidArgument.getDefaultInstance();
public bdchain.api.grpc.common.InvalidArgument getDefaultInstanceForType() {
return bdchain.api.grpc.common.InvalidArgument.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.InvalidArgument build() {
bdchain.api.grpc.InvalidArgument result = buildPartial();
public bdchain.api.grpc.common.InvalidArgument build() {
bdchain.api.grpc.common.InvalidArgument result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -1168,11 +1166,11 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.InvalidArgument buildPartial() {
bdchain.api.grpc.InvalidArgument result = new bdchain.api.grpc.InvalidArgument(this);
public bdchain.api.grpc.common.InvalidArgument buildPartial() {
bdchain.api.grpc.common.InvalidArgument result = new bdchain.api.grpc.common.InvalidArgument(this);
int from_bitField0_ = bitField0_;
if (fieldViolationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
if (((bitField0_ & 0x00000001) != 0)) {
fieldViolations_ = java.util.Collections.unmodifiableList(fieldViolations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
@ -1186,48 +1184,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.InvalidArgument) {
return mergeFrom((bdchain.api.grpc.InvalidArgument)other);
if (other instanceof bdchain.api.grpc.common.InvalidArgument) {
return mergeFrom((bdchain.api.grpc.common.InvalidArgument)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.InvalidArgument other) {
if (other == bdchain.api.grpc.InvalidArgument.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.common.InvalidArgument other) {
if (other == bdchain.api.grpc.common.InvalidArgument.getDefaultInstance()) return this;
if (fieldViolationsBuilder_ == null) {
if (!other.fieldViolations_.isEmpty()) {
if (fieldViolations_.isEmpty()) {
@ -1269,11 +1267,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.InvalidArgument parsedMessage = null;
bdchain.api.grpc.common.InvalidArgument parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.InvalidArgument) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.common.InvalidArgument) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -1284,26 +1282,26 @@ private static final long serialVersionUID = 0L;
}
private int bitField0_;
private java.util.List<bdchain.api.grpc.InvalidArgument.FieldViolation> fieldViolations_ =
private java.util.List<bdchain.api.grpc.common.InvalidArgument.FieldViolation> fieldViolations_ =
java.util.Collections.emptyList();
private void ensureFieldViolationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
fieldViolations_ = new java.util.ArrayList<bdchain.api.grpc.InvalidArgument.FieldViolation>(fieldViolations_);
if (!((bitField0_ & 0x00000001) != 0)) {
fieldViolations_ = new java.util.ArrayList<bdchain.api.grpc.common.InvalidArgument.FieldViolation>(fieldViolations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
bdchain.api.grpc.InvalidArgument.FieldViolation, bdchain.api.grpc.InvalidArgument.FieldViolation.Builder, bdchain.api.grpc.InvalidArgument.FieldViolationOrBuilder> fieldViolationsBuilder_;
bdchain.api.grpc.common.InvalidArgument.FieldViolation, bdchain.api.grpc.common.InvalidArgument.FieldViolation.Builder, bdchain.api.grpc.common.InvalidArgument.FieldViolationOrBuilder> fieldViolationsBuilder_;
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public java.util.List<bdchain.api.grpc.InvalidArgument.FieldViolation> getFieldViolationsList() {
public java.util.List<bdchain.api.grpc.common.InvalidArgument.FieldViolation> getFieldViolationsList() {
if (fieldViolationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fieldViolations_);
} else {
@ -1315,7 +1313,7 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public int getFieldViolationsCount() {
if (fieldViolationsBuilder_ == null) {
@ -1329,9 +1327,9 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public bdchain.api.grpc.InvalidArgument.FieldViolation getFieldViolations(int index) {
public bdchain.api.grpc.common.InvalidArgument.FieldViolation getFieldViolations(int index) {
if (fieldViolationsBuilder_ == null) {
return fieldViolations_.get(index);
} else {
@ -1343,10 +1341,10 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public Builder setFieldViolations(
int index, bdchain.api.grpc.InvalidArgument.FieldViolation value) {
int index, bdchain.api.grpc.common.InvalidArgument.FieldViolation value) {
if (fieldViolationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@ -1364,10 +1362,10 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public Builder setFieldViolations(
int index, bdchain.api.grpc.InvalidArgument.FieldViolation.Builder builderForValue) {
int index, bdchain.api.grpc.common.InvalidArgument.FieldViolation.Builder builderForValue) {
if (fieldViolationsBuilder_ == null) {
ensureFieldViolationsIsMutable();
fieldViolations_.set(index, builderForValue.build());
@ -1382,9 +1380,9 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public Builder addFieldViolations(bdchain.api.grpc.InvalidArgument.FieldViolation value) {
public Builder addFieldViolations(bdchain.api.grpc.common.InvalidArgument.FieldViolation value) {
if (fieldViolationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@ -1402,10 +1400,10 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public Builder addFieldViolations(
int index, bdchain.api.grpc.InvalidArgument.FieldViolation value) {
int index, bdchain.api.grpc.common.InvalidArgument.FieldViolation value) {
if (fieldViolationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@ -1423,10 +1421,10 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public Builder addFieldViolations(
bdchain.api.grpc.InvalidArgument.FieldViolation.Builder builderForValue) {
bdchain.api.grpc.common.InvalidArgument.FieldViolation.Builder builderForValue) {
if (fieldViolationsBuilder_ == null) {
ensureFieldViolationsIsMutable();
fieldViolations_.add(builderForValue.build());
@ -1441,10 +1439,10 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public Builder addFieldViolations(
int index, bdchain.api.grpc.InvalidArgument.FieldViolation.Builder builderForValue) {
int index, bdchain.api.grpc.common.InvalidArgument.FieldViolation.Builder builderForValue) {
if (fieldViolationsBuilder_ == null) {
ensureFieldViolationsIsMutable();
fieldViolations_.add(index, builderForValue.build());
@ -1459,10 +1457,10 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public Builder addAllFieldViolations(
java.lang.Iterable<? extends bdchain.api.grpc.InvalidArgument.FieldViolation> values) {
java.lang.Iterable<? extends bdchain.api.grpc.common.InvalidArgument.FieldViolation> values) {
if (fieldViolationsBuilder_ == null) {
ensureFieldViolationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@ -1478,7 +1476,7 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public Builder clearFieldViolations() {
if (fieldViolationsBuilder_ == null) {
@ -1495,7 +1493,7 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public Builder removeFieldViolations(int index) {
if (fieldViolationsBuilder_ == null) {
@ -1512,9 +1510,9 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public bdchain.api.grpc.InvalidArgument.FieldViolation.Builder getFieldViolationsBuilder(
public bdchain.api.grpc.common.InvalidArgument.FieldViolation.Builder getFieldViolationsBuilder(
int index) {
return getFieldViolationsFieldBuilder().getBuilder(index);
}
@ -1523,9 +1521,9 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public bdchain.api.grpc.InvalidArgument.FieldViolationOrBuilder getFieldViolationsOrBuilder(
public bdchain.api.grpc.common.InvalidArgument.FieldViolationOrBuilder getFieldViolationsOrBuilder(
int index) {
if (fieldViolationsBuilder_ == null) {
return fieldViolations_.get(index); } else {
@ -1537,9 +1535,9 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public java.util.List<? extends bdchain.api.grpc.InvalidArgument.FieldViolationOrBuilder>
public java.util.List<? extends bdchain.api.grpc.common.InvalidArgument.FieldViolationOrBuilder>
getFieldViolationsOrBuilderList() {
if (fieldViolationsBuilder_ != null) {
return fieldViolationsBuilder_.getMessageOrBuilderList();
@ -1552,43 +1550,43 @@ private static final long serialVersionUID = 0L;
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public bdchain.api.grpc.InvalidArgument.FieldViolation.Builder addFieldViolationsBuilder() {
public bdchain.api.grpc.common.InvalidArgument.FieldViolation.Builder addFieldViolationsBuilder() {
return getFieldViolationsFieldBuilder().addBuilder(
bdchain.api.grpc.InvalidArgument.FieldViolation.getDefaultInstance());
bdchain.api.grpc.common.InvalidArgument.FieldViolation.getDefaultInstance());
}
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public bdchain.api.grpc.InvalidArgument.FieldViolation.Builder addFieldViolationsBuilder(
public bdchain.api.grpc.common.InvalidArgument.FieldViolation.Builder addFieldViolationsBuilder(
int index) {
return getFieldViolationsFieldBuilder().addBuilder(
index, bdchain.api.grpc.InvalidArgument.FieldViolation.getDefaultInstance());
index, bdchain.api.grpc.common.InvalidArgument.FieldViolation.getDefaultInstance());
}
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.InvalidArgument.FieldViolation field_violations = 1;</code>
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
public java.util.List<bdchain.api.grpc.InvalidArgument.FieldViolation.Builder>
public java.util.List<bdchain.api.grpc.common.InvalidArgument.FieldViolation.Builder>
getFieldViolationsBuilderList() {
return getFieldViolationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
bdchain.api.grpc.InvalidArgument.FieldViolation, bdchain.api.grpc.InvalidArgument.FieldViolation.Builder, bdchain.api.grpc.InvalidArgument.FieldViolationOrBuilder>
bdchain.api.grpc.common.InvalidArgument.FieldViolation, bdchain.api.grpc.common.InvalidArgument.FieldViolation.Builder, bdchain.api.grpc.common.InvalidArgument.FieldViolationOrBuilder>
getFieldViolationsFieldBuilder() {
if (fieldViolationsBuilder_ == null) {
fieldViolationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
bdchain.api.grpc.InvalidArgument.FieldViolation, bdchain.api.grpc.InvalidArgument.FieldViolation.Builder, bdchain.api.grpc.InvalidArgument.FieldViolationOrBuilder>(
bdchain.api.grpc.common.InvalidArgument.FieldViolation, bdchain.api.grpc.common.InvalidArgument.FieldViolation.Builder, bdchain.api.grpc.common.InvalidArgument.FieldViolationOrBuilder>(
fieldViolations_,
((bitField0_ & 0x00000001) == 0x00000001),
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
fieldViolations_ = null;
@ -1598,7 +1596,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -1608,16 +1606,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.InvalidArgument)
// @@protoc_insertion_point(builder_scope:bdchain.api.common.InvalidArgument)
}
// @@protoc_insertion_point(class_scope:bdchain.api.InvalidArgument)
private static final bdchain.api.grpc.InvalidArgument DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.common.InvalidArgument)
private static final bdchain.api.grpc.common.InvalidArgument DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.InvalidArgument();
DEFAULT_INSTANCE = new bdchain.api.grpc.common.InvalidArgument();
}
public static bdchain.api.grpc.InvalidArgument getDefaultInstance() {
public static bdchain.api.grpc.common.InvalidArgument getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -1642,7 +1640,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.InvalidArgument getDefaultInstanceForType() {
public bdchain.api.grpc.common.InvalidArgument getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -0,0 +1,53 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/error_details.proto
package bdchain.api.grpc.common;
public interface InvalidArgumentOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.common.InvalidArgument)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
java.util.List<bdchain.api.grpc.common.InvalidArgument.FieldViolation>
getFieldViolationsList();
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
bdchain.api.grpc.common.InvalidArgument.FieldViolation getFieldViolations(int index);
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
int getFieldViolationsCount();
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
java.util.List<? extends bdchain.api.grpc.common.InvalidArgument.FieldViolationOrBuilder>
getFieldViolationsOrBuilderList();
/**
* <pre>
* Describes all violations in a client request.
* </pre>
*
* <code>repeated .bdchain.api.common.InvalidArgument.FieldViolation field_violations = 1;</code>
*/
bdchain.api.grpc.common.InvalidArgument.FieldViolationOrBuilder getFieldViolationsOrBuilder(
int index);
}

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/common.proto
package bdchain.api.grpc;
package bdchain.api.grpc.common;
/**
* <pre>
* 事务类型
* </pre>
*
* Protobuf enum {@code bdchain.api.TransactionType}
* Protobuf enum {@code bdchain.api.common.TransactionType}
*/
public enum TransactionType
implements com.google.protobuf.ProtocolMessageEnum {
@ -146,7 +146,7 @@ public enum TransactionType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return bdchain.api.grpc.CommonProto.getDescriptor().getEnumTypes().get(0);
return bdchain.api.grpc.common.CommonProto.getDescriptor().getEnumTypes().get(0);
}
private static final TransactionType[] VALUES = values();
@ -169,6 +169,6 @@ public enum TransactionType
this.value = value;
}
// @@protoc_insertion_point(enum_scope:bdchain.api.TransactionType)
// @@protoc_insertion_point(enum_scope:bdchain.api.common.TransactionType)
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,540 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
/**
* Protobuf type {@code bdchain.api.txledger.BlockCountRequest}
*/
public final class BlockCountRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.BlockCountRequest)
BlockCountRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockCountRequest.newBuilder() to construct.
private BlockCountRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private BlockCountRequest() {
ledger_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BlockCountRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
ledger_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.txledger.BlockCountRequest.class, bdchain.api.grpc.txledger.BlockCountRequest.Builder.class);
}
public static final int LEDGER_FIELD_NUMBER = 1;
private volatile java.lang.Object ledger_;
/**
* <code>string ledger = 1;</code>
*/
public java.lang.String getLedger() {
java.lang.Object ref = ledger_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ledger_ = s;
return s;
}
}
/**
* <code>string ledger = 1;</code>
*/
public com.google.protobuf.ByteString
getLedgerBytes() {
java.lang.Object ref = ledger_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ledger_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getLedgerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ledger_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getLedgerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ledger_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.txledger.BlockCountRequest)) {
return super.equals(obj);
}
bdchain.api.grpc.txledger.BlockCountRequest other = (bdchain.api.grpc.txledger.BlockCountRequest) obj;
if (!getLedger()
.equals(other.getLedger())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LEDGER_FIELD_NUMBER;
hash = (53 * hash) + getLedger().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.txledger.BlockCountRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.BlockCountRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.txledger.BlockCountRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code bdchain.api.txledger.BlockCountRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.BlockCountRequest)
bdchain.api.grpc.txledger.BlockCountRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.txledger.BlockCountRequest.class, bdchain.api.grpc.txledger.BlockCountRequest.Builder.class);
}
// Construct using bdchain.api.grpc.txledger.BlockCountRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
ledger_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountRequest_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.txledger.BlockCountRequest getDefaultInstanceForType() {
return bdchain.api.grpc.txledger.BlockCountRequest.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.txledger.BlockCountRequest build() {
bdchain.api.grpc.txledger.BlockCountRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public bdchain.api.grpc.txledger.BlockCountRequest buildPartial() {
bdchain.api.grpc.txledger.BlockCountRequest result = new bdchain.api.grpc.txledger.BlockCountRequest(this);
result.ledger_ = ledger_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.txledger.BlockCountRequest) {
return mergeFrom((bdchain.api.grpc.txledger.BlockCountRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.txledger.BlockCountRequest other) {
if (other == bdchain.api.grpc.txledger.BlockCountRequest.getDefaultInstance()) return this;
if (!other.getLedger().isEmpty()) {
ledger_ = other.ledger_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.txledger.BlockCountRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.txledger.BlockCountRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object ledger_ = "";
/**
* <code>string ledger = 1;</code>
*/
public java.lang.String getLedger() {
java.lang.Object ref = ledger_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ledger_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string ledger = 1;</code>
*/
public com.google.protobuf.ByteString
getLedgerBytes() {
java.lang.Object ref = ledger_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ledger_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string ledger = 1;</code>
*/
public Builder setLedger(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ledger_ = value;
onChanged();
return this;
}
/**
* <code>string ledger = 1;</code>
*/
public Builder clearLedger() {
ledger_ = getDefaultInstance().getLedger();
onChanged();
return this;
}
/**
* <code>string ledger = 1;</code>
*/
public Builder setLedgerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ledger_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.BlockCountRequest)
}
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.BlockCountRequest)
private static final bdchain.api.grpc.txledger.BlockCountRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.BlockCountRequest();
}
public static bdchain.api.grpc.txledger.BlockCountRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<BlockCountRequest>
PARSER = new com.google.protobuf.AbstractParser<BlockCountRequest>() {
@java.lang.Override
public BlockCountRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BlockCountRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<BlockCountRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<BlockCountRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public bdchain.api.grpc.txledger.BlockCountRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -0,0 +1,19 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
public interface BlockCountRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.BlockCountRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string ledger = 1;</code>
*/
java.lang.String getLedger();
/**
* <code>string ledger = 1;</code>
*/
com.google.protobuf.ByteString
getLedgerBytes();
}

View File

@ -0,0 +1,471 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
/**
* Protobuf type {@code bdchain.api.txledger.BlockCountResponse}
*/
public final class BlockCountResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.BlockCountResponse)
BlockCountResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockCountResponse.newBuilder() to construct.
private BlockCountResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private BlockCountResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BlockCountResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
blockCount_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.txledger.BlockCountResponse.class, bdchain.api.grpc.txledger.BlockCountResponse.Builder.class);
}
public static final int BLOCK_COUNT_FIELD_NUMBER = 1;
private long blockCount_;
/**
* <code>uint64 block_count = 1;</code>
*/
public long getBlockCount() {
return blockCount_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (blockCount_ != 0L) {
output.writeUInt64(1, blockCount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (blockCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, blockCount_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.txledger.BlockCountResponse)) {
return super.equals(obj);
}
bdchain.api.grpc.txledger.BlockCountResponse other = (bdchain.api.grpc.txledger.BlockCountResponse) obj;
if (getBlockCount()
!= other.getBlockCount()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BLOCK_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBlockCount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.txledger.BlockCountResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.BlockCountResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.txledger.BlockCountResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code bdchain.api.txledger.BlockCountResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.BlockCountResponse)
bdchain.api.grpc.txledger.BlockCountResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.txledger.BlockCountResponse.class, bdchain.api.grpc.txledger.BlockCountResponse.Builder.class);
}
// Construct using bdchain.api.grpc.txledger.BlockCountResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
blockCount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountResponse_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.txledger.BlockCountResponse getDefaultInstanceForType() {
return bdchain.api.grpc.txledger.BlockCountResponse.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.txledger.BlockCountResponse build() {
bdchain.api.grpc.txledger.BlockCountResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public bdchain.api.grpc.txledger.BlockCountResponse buildPartial() {
bdchain.api.grpc.txledger.BlockCountResponse result = new bdchain.api.grpc.txledger.BlockCountResponse(this);
result.blockCount_ = blockCount_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.txledger.BlockCountResponse) {
return mergeFrom((bdchain.api.grpc.txledger.BlockCountResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.txledger.BlockCountResponse other) {
if (other == bdchain.api.grpc.txledger.BlockCountResponse.getDefaultInstance()) return this;
if (other.getBlockCount() != 0L) {
setBlockCount(other.getBlockCount());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.txledger.BlockCountResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.txledger.BlockCountResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long blockCount_ ;
/**
* <code>uint64 block_count = 1;</code>
*/
public long getBlockCount() {
return blockCount_;
}
/**
* <code>uint64 block_count = 1;</code>
*/
public Builder setBlockCount(long value) {
blockCount_ = value;
onChanged();
return this;
}
/**
* <code>uint64 block_count = 1;</code>
*/
public Builder clearBlockCount() {
blockCount_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.BlockCountResponse)
}
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.BlockCountResponse)
private static final bdchain.api.grpc.txledger.BlockCountResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.BlockCountResponse();
}
public static bdchain.api.grpc.txledger.BlockCountResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<BlockCountResponse>
PARSER = new com.google.protobuf.AbstractParser<BlockCountResponse>() {
@java.lang.Override
public BlockCountResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BlockCountResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<BlockCountResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<BlockCountResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public bdchain.api.grpc.txledger.BlockCountResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -0,0 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
public interface BlockCountResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.BlockCountResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint64 block_count = 1;</code>
*/
long getBlockCount();
}

View File

@ -0,0 +1,173 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
public interface BlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.Block)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* 事务链本地区块索引当区块处于待确认状态时为`null`
* </pre>
*
* <code>uint64 index = 1;</code>
*/
long getIndex();
/**
* <pre>
* 区块的哈希当区块处于待确认状态时为`null`
* </pre>
*
* <code>bytes hash = 2;</code>
*/
com.google.protobuf.ByteString getHash();
/**
* <pre>
* 父区块的哈希
* </pre>
*
* <code>repeated bytes parent_hashes = 3;</code>
*/
java.util.List<com.google.protobuf.ByteString> getParentHashesList();
/**
* <pre>
* 父区块的哈希
* </pre>
*
* <code>repeated bytes parent_hashes = 3;</code>
*/
int getParentHashesCount();
/**
* <pre>
* 父区块的哈希
* </pre>
*
* <code>repeated bytes parent_hashes = 3;</code>
*/
com.google.protobuf.ByteString getParentHashes(int index);
/**
* <pre>
* 见证者账户地址
* </pre>
*
* <code>repeated bytes witnesses = 4;</code>
*/
java.util.List<com.google.protobuf.ByteString> getWitnessesList();
/**
* <pre>
* 见证者账户地址
* </pre>
*
* <code>repeated bytes witnesses = 4;</code>
*/
int getWitnessesCount();
/**
* <pre>
* 见证者账户地址
* </pre>
*
* <code>repeated bytes witnesses = 4;</code>
*/
com.google.protobuf.ByteString getWitnesses(int index);
/**
* <pre>
* 区块产生时的 UNIX 时间戳单位为秒
* </pre>
*
* <code>int64 timestamp = 5;</code>
*/
long getTimestamp();
/**
* <pre>
* 区块大小的字节数
* </pre>
*
* <code>uint64 size = 6;</code>
*/
long getSize();
/**
* <pre>
* 区块的事务树根
* </pre>
*
* <code>bytes transactions_root = 7;</code>
*/
com.google.protobuf.ByteString getTransactionsRoot();
/**
* <pre>
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
*/
java.util.List<bdchain.api.grpc.txledger.Transaction>
getTransactionsList();
/**
* <pre>
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
*/
bdchain.api.grpc.txledger.Transaction getTransactions(int index);
/**
* <pre>
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
*/
int getTransactionsCount();
/**
* <pre>
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
*/
java.util.List<? extends bdchain.api.grpc.txledger.TransactionOrBuilder>
getTransactionsOrBuilderList();
/**
* <pre>
* 事务对象的数组或为空
* </pre>
*
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
*/
bdchain.api.grpc.txledger.TransactionOrBuilder getTransactionsOrBuilder(
int index);
/**
* <pre>
* 32字节的交易哈希的数组或为空
* </pre>
*
* <code>repeated bytes transaction_hashes = 9;</code>
*/
java.util.List<com.google.protobuf.ByteString> getTransactionHashesList();
/**
* <pre>
* 32字节的交易哈希的数组或为空
* </pre>
*
* <code>repeated bytes transaction_hashes = 9;</code>
*/
int getTransactionHashesCount();
/**
* <pre>
* 32字节的交易哈希的数组或为空
* </pre>
*
* <code>repeated bytes transaction_hashes = 9;</code>
*/
com.google.protobuf.ByteString getTransactionHashes(int index);
}

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc;
package bdchain.api.grpc.txledger;
/**
* Protobuf type {@code bdchain.api.CreateLedgerRequest}
* Protobuf type {@code bdchain.api.txledger.CreateLedgerRequest}
*/
public final class CreateLedgerRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.CreateLedgerRequest)
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.CreateLedgerRequest)
CreateLedgerRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateLedgerRequest.newBuilder() to construct.
@ -50,7 +50,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -70,15 +70,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_CreateLedgerRequest_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_CreateLedgerRequest_fieldAccessorTable
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.CreateLedgerRequest.class, bdchain.api.grpc.CreateLedgerRequest.Builder.class);
bdchain.api.grpc.txledger.CreateLedgerRequest.class, bdchain.api.grpc.txledger.CreateLedgerRequest.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@ -154,16 +154,15 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.CreateLedgerRequest)) {
if (!(obj instanceof bdchain.api.grpc.txledger.CreateLedgerRequest)) {
return super.equals(obj);
}
bdchain.api.grpc.CreateLedgerRequest other = (bdchain.api.grpc.CreateLedgerRequest) obj;
bdchain.api.grpc.txledger.CreateLedgerRequest other = (bdchain.api.grpc.txledger.CreateLedgerRequest) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!getName()
.equals(other.getName())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -180,69 +179,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.CreateLedgerRequest parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.CreateLedgerRequest parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.CreateLedgerRequest parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.CreateLedgerRequest parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.CreateLedgerRequest parseFrom(byte[] data)
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.CreateLedgerRequest parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.CreateLedgerRequest parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.CreateLedgerRequest parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.CreateLedgerRequest parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.CreateLedgerRequest parseDelimitedFrom(
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.CreateLedgerRequest parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.CreateLedgerRequest parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -255,7 +254,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.CreateLedgerRequest prototype) {
public static Builder newBuilder(bdchain.api.grpc.txledger.CreateLedgerRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -271,26 +270,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.CreateLedgerRequest}
* Protobuf type {@code bdchain.api.txledger.CreateLedgerRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.CreateLedgerRequest)
bdchain.api.grpc.CreateLedgerRequestOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.CreateLedgerRequest)
bdchain.api.grpc.txledger.CreateLedgerRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_CreateLedgerRequest_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_CreateLedgerRequest_fieldAccessorTable
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.CreateLedgerRequest.class, bdchain.api.grpc.CreateLedgerRequest.Builder.class);
bdchain.api.grpc.txledger.CreateLedgerRequest.class, bdchain.api.grpc.txledger.CreateLedgerRequest.Builder.class);
}
// Construct using bdchain.api.grpc.CreateLedgerRequest.newBuilder()
// Construct using bdchain.api.grpc.txledger.CreateLedgerRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -316,17 +315,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_CreateLedgerRequest_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerRequest_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.CreateLedgerRequest getDefaultInstanceForType() {
return bdchain.api.grpc.CreateLedgerRequest.getDefaultInstance();
public bdchain.api.grpc.txledger.CreateLedgerRequest getDefaultInstanceForType() {
return bdchain.api.grpc.txledger.CreateLedgerRequest.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.CreateLedgerRequest build() {
bdchain.api.grpc.CreateLedgerRequest result = buildPartial();
public bdchain.api.grpc.txledger.CreateLedgerRequest build() {
bdchain.api.grpc.txledger.CreateLedgerRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -334,8 +333,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.CreateLedgerRequest buildPartial() {
bdchain.api.grpc.CreateLedgerRequest result = new bdchain.api.grpc.CreateLedgerRequest(this);
public bdchain.api.grpc.txledger.CreateLedgerRequest buildPartial() {
bdchain.api.grpc.txledger.CreateLedgerRequest result = new bdchain.api.grpc.txledger.CreateLedgerRequest(this);
result.name_ = name_;
onBuilt();
return result;
@ -343,48 +342,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.CreateLedgerRequest) {
return mergeFrom((bdchain.api.grpc.CreateLedgerRequest)other);
if (other instanceof bdchain.api.grpc.txledger.CreateLedgerRequest) {
return mergeFrom((bdchain.api.grpc.txledger.CreateLedgerRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.CreateLedgerRequest other) {
if (other == bdchain.api.grpc.CreateLedgerRequest.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.txledger.CreateLedgerRequest other) {
if (other == bdchain.api.grpc.txledger.CreateLedgerRequest.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
@ -404,11 +403,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.CreateLedgerRequest parsedMessage = null;
bdchain.api.grpc.txledger.CreateLedgerRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.CreateLedgerRequest) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.txledger.CreateLedgerRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -489,7 +488,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -499,16 +498,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.CreateLedgerRequest)
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.CreateLedgerRequest)
}
// @@protoc_insertion_point(class_scope:bdchain.api.CreateLedgerRequest)
private static final bdchain.api.grpc.CreateLedgerRequest DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.CreateLedgerRequest)
private static final bdchain.api.grpc.txledger.CreateLedgerRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.CreateLedgerRequest();
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.CreateLedgerRequest();
}
public static bdchain.api.grpc.CreateLedgerRequest getDefaultInstance() {
public static bdchain.api.grpc.txledger.CreateLedgerRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -533,7 +532,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.CreateLedgerRequest getDefaultInstanceForType() {
public bdchain.api.grpc.txledger.CreateLedgerRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc;
package bdchain.api.grpc.txledger;
public interface CreateLedgerRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.CreateLedgerRequest)
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.CreateLedgerRequest)
com.google.protobuf.MessageOrBuilder {
/**

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc;
package bdchain.api.grpc.txledger;
/**
* Protobuf type {@code bdchain.api.CreateLedgerResponse}
* Protobuf type {@code bdchain.api.txledger.CreateLedgerResponse}
*/
public final class CreateLedgerResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.CreateLedgerResponse)
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.CreateLedgerResponse)
CreateLedgerResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateLedgerResponse.newBuilder() to construct.
@ -16,7 +16,6 @@ private static final long serialVersionUID = 0L;
super(builder);
}
private CreateLedgerResponse() {
ok_ = false;
}
@java.lang.Override
@ -49,7 +48,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -69,15 +68,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_CreateLedgerResponse_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_CreateLedgerResponse_fieldAccessorTable
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.CreateLedgerResponse.class, bdchain.api.grpc.CreateLedgerResponse.Builder.class);
bdchain.api.grpc.txledger.CreateLedgerResponse.class, bdchain.api.grpc.txledger.CreateLedgerResponse.Builder.class);
}
public static final int OK_FIELD_NUMBER = 1;
@ -129,16 +128,15 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.CreateLedgerResponse)) {
if (!(obj instanceof bdchain.api.grpc.txledger.CreateLedgerResponse)) {
return super.equals(obj);
}
bdchain.api.grpc.CreateLedgerResponse other = (bdchain.api.grpc.CreateLedgerResponse) obj;
bdchain.api.grpc.txledger.CreateLedgerResponse other = (bdchain.api.grpc.txledger.CreateLedgerResponse) obj;
boolean result = true;
result = result && (getOk()
== other.getOk());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (getOk()
!= other.getOk()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -156,69 +154,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.CreateLedgerResponse parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.CreateLedgerResponse parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.CreateLedgerResponse parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.CreateLedgerResponse parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.CreateLedgerResponse parseFrom(byte[] data)
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.CreateLedgerResponse parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.CreateLedgerResponse parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.CreateLedgerResponse parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.CreateLedgerResponse parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.CreateLedgerResponse parseDelimitedFrom(
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.CreateLedgerResponse parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.CreateLedgerResponse parseFrom(
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -231,7 +229,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.CreateLedgerResponse prototype) {
public static Builder newBuilder(bdchain.api.grpc.txledger.CreateLedgerResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -247,26 +245,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.CreateLedgerResponse}
* Protobuf type {@code bdchain.api.txledger.CreateLedgerResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.CreateLedgerResponse)
bdchain.api.grpc.CreateLedgerResponseOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.CreateLedgerResponse)
bdchain.api.grpc.txledger.CreateLedgerResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_CreateLedgerResponse_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_CreateLedgerResponse_fieldAccessorTable
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.CreateLedgerResponse.class, bdchain.api.grpc.CreateLedgerResponse.Builder.class);
bdchain.api.grpc.txledger.CreateLedgerResponse.class, bdchain.api.grpc.txledger.CreateLedgerResponse.Builder.class);
}
// Construct using bdchain.api.grpc.CreateLedgerResponse.newBuilder()
// Construct using bdchain.api.grpc.txledger.CreateLedgerResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -292,17 +290,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_CreateLedgerResponse_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerResponse_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.CreateLedgerResponse getDefaultInstanceForType() {
return bdchain.api.grpc.CreateLedgerResponse.getDefaultInstance();
public bdchain.api.grpc.txledger.CreateLedgerResponse getDefaultInstanceForType() {
return bdchain.api.grpc.txledger.CreateLedgerResponse.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.CreateLedgerResponse build() {
bdchain.api.grpc.CreateLedgerResponse result = buildPartial();
public bdchain.api.grpc.txledger.CreateLedgerResponse build() {
bdchain.api.grpc.txledger.CreateLedgerResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -310,8 +308,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.CreateLedgerResponse buildPartial() {
bdchain.api.grpc.CreateLedgerResponse result = new bdchain.api.grpc.CreateLedgerResponse(this);
public bdchain.api.grpc.txledger.CreateLedgerResponse buildPartial() {
bdchain.api.grpc.txledger.CreateLedgerResponse result = new bdchain.api.grpc.txledger.CreateLedgerResponse(this);
result.ok_ = ok_;
onBuilt();
return result;
@ -319,48 +317,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.CreateLedgerResponse) {
return mergeFrom((bdchain.api.grpc.CreateLedgerResponse)other);
if (other instanceof bdchain.api.grpc.txledger.CreateLedgerResponse) {
return mergeFrom((bdchain.api.grpc.txledger.CreateLedgerResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.CreateLedgerResponse other) {
if (other == bdchain.api.grpc.CreateLedgerResponse.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.txledger.CreateLedgerResponse other) {
if (other == bdchain.api.grpc.txledger.CreateLedgerResponse.getDefaultInstance()) return this;
if (other.getOk() != false) {
setOk(other.getOk());
}
@ -379,11 +377,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.CreateLedgerResponse parsedMessage = null;
bdchain.api.grpc.txledger.CreateLedgerResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.CreateLedgerResponse) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.txledger.CreateLedgerResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -421,7 +419,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -431,16 +429,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.CreateLedgerResponse)
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.CreateLedgerResponse)
}
// @@protoc_insertion_point(class_scope:bdchain.api.CreateLedgerResponse)
private static final bdchain.api.grpc.CreateLedgerResponse DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.CreateLedgerResponse)
private static final bdchain.api.grpc.txledger.CreateLedgerResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.CreateLedgerResponse();
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.CreateLedgerResponse();
}
public static bdchain.api.grpc.CreateLedgerResponse getDefaultInstance() {
public static bdchain.api.grpc.txledger.CreateLedgerResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -465,7 +463,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.CreateLedgerResponse getDefaultInstanceForType() {
public bdchain.api.grpc.txledger.CreateLedgerResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc;
package bdchain.api.grpc.txledger;
public interface CreateLedgerResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.CreateLedgerResponse)
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.CreateLedgerResponse)
com.google.protobuf.MessageOrBuilder {
/**

View File

@ -0,0 +1,729 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
/**
* Protobuf type {@code bdchain.api.txledger.GetBlocksRequest}
*/
public final class GetBlocksRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.GetBlocksRequest)
GetBlocksRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBlocksRequest.newBuilder() to construct.
private GetBlocksRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private GetBlocksRequest() {
ledger_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetBlocksRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
ledger_ = s;
break;
}
case 16: {
fromIndex_ = input.readUInt64();
break;
}
case 24: {
count_ = input.readUInt32();
break;
}
case 32: {
fullTransaction_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.txledger.GetBlocksRequest.class, bdchain.api.grpc.txledger.GetBlocksRequest.Builder.class);
}
public static final int LEDGER_FIELD_NUMBER = 1;
private volatile java.lang.Object ledger_;
/**
* <code>string ledger = 1;</code>
*/
public java.lang.String getLedger() {
java.lang.Object ref = ledger_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ledger_ = s;
return s;
}
}
/**
* <code>string ledger = 1;</code>
*/
public com.google.protobuf.ByteString
getLedgerBytes() {
java.lang.Object ref = ledger_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ledger_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FROM_INDEX_FIELD_NUMBER = 2;
private long fromIndex_;
/**
* <code>uint64 from_index = 2;</code>
*/
public long getFromIndex() {
return fromIndex_;
}
public static final int COUNT_FIELD_NUMBER = 3;
private int count_;
/**
* <pre>
* Optional, default to 10, max value is 10
* </pre>
*
* <code>uint32 count = 3;</code>
*/
public int getCount() {
return count_;
}
public static final int FULL_TRANSACTION_FIELD_NUMBER = 4;
private boolean fullTransaction_;
/**
* <code>bool full_transaction = 4;</code>
*/
public boolean getFullTransaction() {
return fullTransaction_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getLedgerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ledger_);
}
if (fromIndex_ != 0L) {
output.writeUInt64(2, fromIndex_);
}
if (count_ != 0) {
output.writeUInt32(3, count_);
}
if (fullTransaction_ != false) {
output.writeBool(4, fullTransaction_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getLedgerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ledger_);
}
if (fromIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, fromIndex_);
}
if (count_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, count_);
}
if (fullTransaction_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, fullTransaction_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.txledger.GetBlocksRequest)) {
return super.equals(obj);
}
bdchain.api.grpc.txledger.GetBlocksRequest other = (bdchain.api.grpc.txledger.GetBlocksRequest) obj;
if (!getLedger()
.equals(other.getLedger())) return false;
if (getFromIndex()
!= other.getFromIndex()) return false;
if (getCount()
!= other.getCount()) return false;
if (getFullTransaction()
!= other.getFullTransaction()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LEDGER_FIELD_NUMBER;
hash = (53 * hash) + getLedger().hashCode();
hash = (37 * hash) + FROM_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFromIndex());
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCount();
hash = (37 * hash) + FULL_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFullTransaction());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.GetBlocksRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.txledger.GetBlocksRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code bdchain.api.txledger.GetBlocksRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.GetBlocksRequest)
bdchain.api.grpc.txledger.GetBlocksRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.txledger.GetBlocksRequest.class, bdchain.api.grpc.txledger.GetBlocksRequest.Builder.class);
}
// Construct using bdchain.api.grpc.txledger.GetBlocksRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
ledger_ = "";
fromIndex_ = 0L;
count_ = 0;
fullTransaction_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksRequest_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.txledger.GetBlocksRequest getDefaultInstanceForType() {
return bdchain.api.grpc.txledger.GetBlocksRequest.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.txledger.GetBlocksRequest build() {
bdchain.api.grpc.txledger.GetBlocksRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public bdchain.api.grpc.txledger.GetBlocksRequest buildPartial() {
bdchain.api.grpc.txledger.GetBlocksRequest result = new bdchain.api.grpc.txledger.GetBlocksRequest(this);
result.ledger_ = ledger_;
result.fromIndex_ = fromIndex_;
result.count_ = count_;
result.fullTransaction_ = fullTransaction_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.txledger.GetBlocksRequest) {
return mergeFrom((bdchain.api.grpc.txledger.GetBlocksRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.txledger.GetBlocksRequest other) {
if (other == bdchain.api.grpc.txledger.GetBlocksRequest.getDefaultInstance()) return this;
if (!other.getLedger().isEmpty()) {
ledger_ = other.ledger_;
onChanged();
}
if (other.getFromIndex() != 0L) {
setFromIndex(other.getFromIndex());
}
if (other.getCount() != 0) {
setCount(other.getCount());
}
if (other.getFullTransaction() != false) {
setFullTransaction(other.getFullTransaction());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.txledger.GetBlocksRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.txledger.GetBlocksRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object ledger_ = "";
/**
* <code>string ledger = 1;</code>
*/
public java.lang.String getLedger() {
java.lang.Object ref = ledger_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ledger_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string ledger = 1;</code>
*/
public com.google.protobuf.ByteString
getLedgerBytes() {
java.lang.Object ref = ledger_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ledger_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string ledger = 1;</code>
*/
public Builder setLedger(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ledger_ = value;
onChanged();
return this;
}
/**
* <code>string ledger = 1;</code>
*/
public Builder clearLedger() {
ledger_ = getDefaultInstance().getLedger();
onChanged();
return this;
}
/**
* <code>string ledger = 1;</code>
*/
public Builder setLedgerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ledger_ = value;
onChanged();
return this;
}
private long fromIndex_ ;
/**
* <code>uint64 from_index = 2;</code>
*/
public long getFromIndex() {
return fromIndex_;
}
/**
* <code>uint64 from_index = 2;</code>
*/
public Builder setFromIndex(long value) {
fromIndex_ = value;
onChanged();
return this;
}
/**
* <code>uint64 from_index = 2;</code>
*/
public Builder clearFromIndex() {
fromIndex_ = 0L;
onChanged();
return this;
}
private int count_ ;
/**
* <pre>
* Optional, default to 10, max value is 10
* </pre>
*
* <code>uint32 count = 3;</code>
*/
public int getCount() {
return count_;
}
/**
* <pre>
* Optional, default to 10, max value is 10
* </pre>
*
* <code>uint32 count = 3;</code>
*/
public Builder setCount(int value) {
count_ = value;
onChanged();
return this;
}
/**
* <pre>
* Optional, default to 10, max value is 10
* </pre>
*
* <code>uint32 count = 3;</code>
*/
public Builder clearCount() {
count_ = 0;
onChanged();
return this;
}
private boolean fullTransaction_ ;
/**
* <code>bool full_transaction = 4;</code>
*/
public boolean getFullTransaction() {
return fullTransaction_;
}
/**
* <code>bool full_transaction = 4;</code>
*/
public Builder setFullTransaction(boolean value) {
fullTransaction_ = value;
onChanged();
return this;
}
/**
* <code>bool full_transaction = 4;</code>
*/
public Builder clearFullTransaction() {
fullTransaction_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.GetBlocksRequest)
}
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.GetBlocksRequest)
private static final bdchain.api.grpc.txledger.GetBlocksRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.GetBlocksRequest();
}
public static bdchain.api.grpc.txledger.GetBlocksRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<GetBlocksRequest>
PARSER = new com.google.protobuf.AbstractParser<GetBlocksRequest>() {
@java.lang.Override
public GetBlocksRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetBlocksRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<GetBlocksRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<GetBlocksRequest> getParserForType() {
return PARSER;
}
@java.lang.Override
public bdchain.api.grpc.txledger.GetBlocksRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -0,0 +1,38 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
public interface GetBlocksRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.GetBlocksRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string ledger = 1;</code>
*/
java.lang.String getLedger();
/**
* <code>string ledger = 1;</code>
*/
com.google.protobuf.ByteString
getLedgerBytes();
/**
* <code>uint64 from_index = 2;</code>
*/
long getFromIndex();
/**
* <pre>
* Optional, default to 10, max value is 10
* </pre>
*
* <code>uint32 count = 3;</code>
*/
int getCount();
/**
* <code>bool full_transaction = 4;</code>
*/
boolean getFullTransaction();
}

View File

@ -0,0 +1,758 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
/**
* Protobuf type {@code bdchain.api.txledger.GetBlocksResponse}
*/
public final class GetBlocksResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.GetBlocksResponse)
GetBlocksResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBlocksResponse.newBuilder() to construct.
private GetBlocksResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private GetBlocksResponse() {
blocks_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetBlocksResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
blocks_ = new java.util.ArrayList<bdchain.api.grpc.txledger.Block>();
mutable_bitField0_ |= 0x00000001;
}
blocks_.add(
input.readMessage(bdchain.api.grpc.txledger.Block.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
blocks_ = java.util.Collections.unmodifiableList(blocks_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.txledger.GetBlocksResponse.class, bdchain.api.grpc.txledger.GetBlocksResponse.Builder.class);
}
public static final int BLOCKS_FIELD_NUMBER = 1;
private java.util.List<bdchain.api.grpc.txledger.Block> blocks_;
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public java.util.List<bdchain.api.grpc.txledger.Block> getBlocksList() {
return blocks_;
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public java.util.List<? extends bdchain.api.grpc.txledger.BlockOrBuilder>
getBlocksOrBuilderList() {
return blocks_;
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public int getBlocksCount() {
return blocks_.size();
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public bdchain.api.grpc.txledger.Block getBlocks(int index) {
return blocks_.get(index);
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public bdchain.api.grpc.txledger.BlockOrBuilder getBlocksOrBuilder(
int index) {
return blocks_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < blocks_.size(); i++) {
output.writeMessage(1, blocks_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < blocks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, blocks_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.txledger.GetBlocksResponse)) {
return super.equals(obj);
}
bdchain.api.grpc.txledger.GetBlocksResponse other = (bdchain.api.grpc.txledger.GetBlocksResponse) obj;
if (!getBlocksList()
.equals(other.getBlocksList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getBlocksCount() > 0) {
hash = (37 * hash) + BLOCKS_FIELD_NUMBER;
hash = (53 * hash) + getBlocksList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.txledger.GetBlocksResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.GetBlocksResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.txledger.GetBlocksResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code bdchain.api.txledger.GetBlocksResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.GetBlocksResponse)
bdchain.api.grpc.txledger.GetBlocksResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.txledger.GetBlocksResponse.class, bdchain.api.grpc.txledger.GetBlocksResponse.Builder.class);
}
// Construct using bdchain.api.grpc.txledger.GetBlocksResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBlocksFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (blocksBuilder_ == null) {
blocks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
blocksBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksResponse_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.txledger.GetBlocksResponse getDefaultInstanceForType() {
return bdchain.api.grpc.txledger.GetBlocksResponse.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.txledger.GetBlocksResponse build() {
bdchain.api.grpc.txledger.GetBlocksResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public bdchain.api.grpc.txledger.GetBlocksResponse buildPartial() {
bdchain.api.grpc.txledger.GetBlocksResponse result = new bdchain.api.grpc.txledger.GetBlocksResponse(this);
int from_bitField0_ = bitField0_;
if (blocksBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
blocks_ = java.util.Collections.unmodifiableList(blocks_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.blocks_ = blocks_;
} else {
result.blocks_ = blocksBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.txledger.GetBlocksResponse) {
return mergeFrom((bdchain.api.grpc.txledger.GetBlocksResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.txledger.GetBlocksResponse other) {
if (other == bdchain.api.grpc.txledger.GetBlocksResponse.getDefaultInstance()) return this;
if (blocksBuilder_ == null) {
if (!other.blocks_.isEmpty()) {
if (blocks_.isEmpty()) {
blocks_ = other.blocks_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBlocksIsMutable();
blocks_.addAll(other.blocks_);
}
onChanged();
}
} else {
if (!other.blocks_.isEmpty()) {
if (blocksBuilder_.isEmpty()) {
blocksBuilder_.dispose();
blocksBuilder_ = null;
blocks_ = other.blocks_;
bitField0_ = (bitField0_ & ~0x00000001);
blocksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBlocksFieldBuilder() : null;
} else {
blocksBuilder_.addAllMessages(other.blocks_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.txledger.GetBlocksResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.txledger.GetBlocksResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List<bdchain.api.grpc.txledger.Block> blocks_ =
java.util.Collections.emptyList();
private void ensureBlocksIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
blocks_ = new java.util.ArrayList<bdchain.api.grpc.txledger.Block>(blocks_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
bdchain.api.grpc.txledger.Block, bdchain.api.grpc.txledger.Block.Builder, bdchain.api.grpc.txledger.BlockOrBuilder> blocksBuilder_;
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public java.util.List<bdchain.api.grpc.txledger.Block> getBlocksList() {
if (blocksBuilder_ == null) {
return java.util.Collections.unmodifiableList(blocks_);
} else {
return blocksBuilder_.getMessageList();
}
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public int getBlocksCount() {
if (blocksBuilder_ == null) {
return blocks_.size();
} else {
return blocksBuilder_.getCount();
}
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public bdchain.api.grpc.txledger.Block getBlocks(int index) {
if (blocksBuilder_ == null) {
return blocks_.get(index);
} else {
return blocksBuilder_.getMessage(index);
}
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public Builder setBlocks(
int index, bdchain.api.grpc.txledger.Block value) {
if (blocksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlocksIsMutable();
blocks_.set(index, value);
onChanged();
} else {
blocksBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public Builder setBlocks(
int index, bdchain.api.grpc.txledger.Block.Builder builderForValue) {
if (blocksBuilder_ == null) {
ensureBlocksIsMutable();
blocks_.set(index, builderForValue.build());
onChanged();
} else {
blocksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public Builder addBlocks(bdchain.api.grpc.txledger.Block value) {
if (blocksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlocksIsMutable();
blocks_.add(value);
onChanged();
} else {
blocksBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public Builder addBlocks(
int index, bdchain.api.grpc.txledger.Block value) {
if (blocksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlocksIsMutable();
blocks_.add(index, value);
onChanged();
} else {
blocksBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public Builder addBlocks(
bdchain.api.grpc.txledger.Block.Builder builderForValue) {
if (blocksBuilder_ == null) {
ensureBlocksIsMutable();
blocks_.add(builderForValue.build());
onChanged();
} else {
blocksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public Builder addBlocks(
int index, bdchain.api.grpc.txledger.Block.Builder builderForValue) {
if (blocksBuilder_ == null) {
ensureBlocksIsMutable();
blocks_.add(index, builderForValue.build());
onChanged();
} else {
blocksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public Builder addAllBlocks(
java.lang.Iterable<? extends bdchain.api.grpc.txledger.Block> values) {
if (blocksBuilder_ == null) {
ensureBlocksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, blocks_);
onChanged();
} else {
blocksBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public Builder clearBlocks() {
if (blocksBuilder_ == null) {
blocks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
blocksBuilder_.clear();
}
return this;
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public Builder removeBlocks(int index) {
if (blocksBuilder_ == null) {
ensureBlocksIsMutable();
blocks_.remove(index);
onChanged();
} else {
blocksBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public bdchain.api.grpc.txledger.Block.Builder getBlocksBuilder(
int index) {
return getBlocksFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public bdchain.api.grpc.txledger.BlockOrBuilder getBlocksOrBuilder(
int index) {
if (blocksBuilder_ == null) {
return blocks_.get(index); } else {
return blocksBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public java.util.List<? extends bdchain.api.grpc.txledger.BlockOrBuilder>
getBlocksOrBuilderList() {
if (blocksBuilder_ != null) {
return blocksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(blocks_);
}
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public bdchain.api.grpc.txledger.Block.Builder addBlocksBuilder() {
return getBlocksFieldBuilder().addBuilder(
bdchain.api.grpc.txledger.Block.getDefaultInstance());
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public bdchain.api.grpc.txledger.Block.Builder addBlocksBuilder(
int index) {
return getBlocksFieldBuilder().addBuilder(
index, bdchain.api.grpc.txledger.Block.getDefaultInstance());
}
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
public java.util.List<bdchain.api.grpc.txledger.Block.Builder>
getBlocksBuilderList() {
return getBlocksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
bdchain.api.grpc.txledger.Block, bdchain.api.grpc.txledger.Block.Builder, bdchain.api.grpc.txledger.BlockOrBuilder>
getBlocksFieldBuilder() {
if (blocksBuilder_ == null) {
blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
bdchain.api.grpc.txledger.Block, bdchain.api.grpc.txledger.Block.Builder, bdchain.api.grpc.txledger.BlockOrBuilder>(
blocks_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
blocks_ = null;
}
return blocksBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.GetBlocksResponse)
}
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.GetBlocksResponse)
private static final bdchain.api.grpc.txledger.GetBlocksResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.GetBlocksResponse();
}
public static bdchain.api.grpc.txledger.GetBlocksResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<GetBlocksResponse>
PARSER = new com.google.protobuf.AbstractParser<GetBlocksResponse>() {
@java.lang.Override
public GetBlocksResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetBlocksResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<GetBlocksResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<GetBlocksResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public bdchain.api.grpc.txledger.GetBlocksResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -0,0 +1,33 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
public interface GetBlocksResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.GetBlocksResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
java.util.List<bdchain.api.grpc.txledger.Block>
getBlocksList();
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
bdchain.api.grpc.txledger.Block getBlocks(int index);
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
int getBlocksCount();
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
java.util.List<? extends bdchain.api.grpc.txledger.BlockOrBuilder>
getBlocksOrBuilderList();
/**
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
*/
bdchain.api.grpc.txledger.BlockOrBuilder getBlocksOrBuilder(
int index);
}

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc;
package bdchain.api.grpc.txledger;
/**
* Protobuf type {@code bdchain.api.GetLedgersResponse}
* Protobuf type {@code bdchain.api.txledger.GetLedgersResponse}
*/
public final class GetLedgersResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.GetLedgersResponse)
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.GetLedgersResponse)
GetLedgersResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetLedgersResponse.newBuilder() to construct.
@ -45,7 +45,7 @@ private static final long serialVersionUID = 0L;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
ledgers_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
@ -53,7 +53,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -67,7 +67,7 @@ private static final long serialVersionUID = 0L;
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
ledgers_ = ledgers_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
@ -76,15 +76,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_GetLedgersResponse_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetLedgersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_GetLedgersResponse_fieldAccessorTable
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetLedgersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.GetLedgersResponse.class, bdchain.api.grpc.GetLedgersResponse.Builder.class);
bdchain.api.grpc.txledger.GetLedgersResponse.class, bdchain.api.grpc.txledger.GetLedgersResponse.Builder.class);
}
public static final int LEDGERS_FIELD_NUMBER = 1;
@ -160,16 +160,15 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.GetLedgersResponse)) {
if (!(obj instanceof bdchain.api.grpc.txledger.GetLedgersResponse)) {
return super.equals(obj);
}
bdchain.api.grpc.GetLedgersResponse other = (bdchain.api.grpc.GetLedgersResponse) obj;
bdchain.api.grpc.txledger.GetLedgersResponse other = (bdchain.api.grpc.txledger.GetLedgersResponse) obj;
boolean result = true;
result = result && getLedgersList()
.equals(other.getLedgersList());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!getLedgersList()
.equals(other.getLedgersList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -188,69 +187,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.GetLedgersResponse parseFrom(
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetLedgersResponse parseFrom(
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetLedgersResponse parseFrom(
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetLedgersResponse parseFrom(
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetLedgersResponse parseFrom(byte[] data)
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.GetLedgersResponse parseFrom(
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.GetLedgersResponse parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetLedgersResponse parseFrom(
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.GetLedgersResponse parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.txledger.GetLedgersResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetLedgersResponse parseDelimitedFrom(
public static bdchain.api.grpc.txledger.GetLedgersResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.GetLedgersResponse parseFrom(
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.GetLedgersResponse parseFrom(
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -263,7 +262,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.GetLedgersResponse prototype) {
public static Builder newBuilder(bdchain.api.grpc.txledger.GetLedgersResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -279,26 +278,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.GetLedgersResponse}
* Protobuf type {@code bdchain.api.txledger.GetLedgersResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.GetLedgersResponse)
bdchain.api.grpc.GetLedgersResponseOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.GetLedgersResponse)
bdchain.api.grpc.txledger.GetLedgersResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_GetLedgersResponse_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetLedgersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_GetLedgersResponse_fieldAccessorTable
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetLedgersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.GetLedgersResponse.class, bdchain.api.grpc.GetLedgersResponse.Builder.class);
bdchain.api.grpc.txledger.GetLedgersResponse.class, bdchain.api.grpc.txledger.GetLedgersResponse.Builder.class);
}
// Construct using bdchain.api.grpc.GetLedgersResponse.newBuilder()
// Construct using bdchain.api.grpc.txledger.GetLedgersResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -324,17 +323,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_GetLedgersResponse_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetLedgersResponse_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.GetLedgersResponse getDefaultInstanceForType() {
return bdchain.api.grpc.GetLedgersResponse.getDefaultInstance();
public bdchain.api.grpc.txledger.GetLedgersResponse getDefaultInstanceForType() {
return bdchain.api.grpc.txledger.GetLedgersResponse.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.GetLedgersResponse build() {
bdchain.api.grpc.GetLedgersResponse result = buildPartial();
public bdchain.api.grpc.txledger.GetLedgersResponse build() {
bdchain.api.grpc.txledger.GetLedgersResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -342,10 +341,10 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.GetLedgersResponse buildPartial() {
bdchain.api.grpc.GetLedgersResponse result = new bdchain.api.grpc.GetLedgersResponse(this);
public bdchain.api.grpc.txledger.GetLedgersResponse buildPartial() {
bdchain.api.grpc.txledger.GetLedgersResponse result = new bdchain.api.grpc.txledger.GetLedgersResponse(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
if (((bitField0_ & 0x00000001) != 0)) {
ledgers_ = ledgers_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
@ -356,48 +355,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.GetLedgersResponse) {
return mergeFrom((bdchain.api.grpc.GetLedgersResponse)other);
if (other instanceof bdchain.api.grpc.txledger.GetLedgersResponse) {
return mergeFrom((bdchain.api.grpc.txledger.GetLedgersResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.GetLedgersResponse other) {
if (other == bdchain.api.grpc.GetLedgersResponse.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.txledger.GetLedgersResponse other) {
if (other == bdchain.api.grpc.txledger.GetLedgersResponse.getDefaultInstance()) return this;
if (!other.ledgers_.isEmpty()) {
if (ledgers_.isEmpty()) {
ledgers_ = other.ledgers_;
@ -423,11 +422,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.GetLedgersResponse parsedMessage = null;
bdchain.api.grpc.txledger.GetLedgersResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.GetLedgersResponse) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.txledger.GetLedgersResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -440,7 +439,7 @@ private static final long serialVersionUID = 0L;
private com.google.protobuf.LazyStringList ledgers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureLedgersIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
if (!((bitField0_ & 0x00000001) != 0)) {
ledgers_ = new com.google.protobuf.LazyStringArrayList(ledgers_);
bitField0_ |= 0x00000001;
}
@ -534,7 +533,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -544,16 +543,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.GetLedgersResponse)
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.GetLedgersResponse)
}
// @@protoc_insertion_point(class_scope:bdchain.api.GetLedgersResponse)
private static final bdchain.api.grpc.GetLedgersResponse DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.GetLedgersResponse)
private static final bdchain.api.grpc.txledger.GetLedgersResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.GetLedgersResponse();
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.GetLedgersResponse();
}
public static bdchain.api.grpc.GetLedgersResponse getDefaultInstance() {
public static bdchain.api.grpc.txledger.GetLedgersResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -578,7 +577,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.GetLedgersResponse getDefaultInstanceForType() {
public bdchain.api.grpc.txledger.GetLedgersResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc;
package bdchain.api.grpc.txledger;
public interface GetLedgersResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.GetLedgersResponse)
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.GetLedgersResponse)
com.google.protobuf.MessageOrBuilder {
/**

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc;
package bdchain.api.grpc.txledger;
/**
* Protobuf type {@code bdchain.api.SendTransactionRequest}
* Protobuf type {@code bdchain.api.txledger.SendTransactionRequest}
*/
public final class SendTransactionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.SendTransactionRequest)
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.SendTransactionRequest)
SendTransactionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SendTransactionRequest.newBuilder() to construct.
@ -50,11 +50,11 @@ private static final long serialVersionUID = 0L;
break;
}
case 18: {
bdchain.api.grpc.SendTransactionRequest.Transaction.Builder subBuilder = null;
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder subBuilder = null;
if (transaction_ != null) {
subBuilder = transaction_.toBuilder();
}
transaction_ = input.readMessage(bdchain.api.grpc.SendTransactionRequest.Transaction.parser(), extensionRegistry);
transaction_ = input.readMessage(bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(transaction_);
transaction_ = subBuilder.buildPartial();
@ -63,7 +63,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -83,29 +83,29 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionRequest_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionRequest_fieldAccessorTable
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.SendTransactionRequest.class, bdchain.api.grpc.SendTransactionRequest.Builder.class);
bdchain.api.grpc.txledger.SendTransactionRequest.class, bdchain.api.grpc.txledger.SendTransactionRequest.Builder.class);
}
public interface TransactionOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.SendTransactionRequest.Transaction)
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.SendTransactionRequest.Transaction)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.bdchain.api.TransactionType type = 1;</code>
* <code>.bdchain.api.common.TransactionType type = 1;</code>
*/
int getTypeValue();
/**
* <code>.bdchain.api.TransactionType type = 1;</code>
* <code>.bdchain.api.common.TransactionType type = 1;</code>
*/
bdchain.api.grpc.TransactionType getType();
bdchain.api.grpc.common.TransactionType getType();
/**
* <code>bytes from = 2;</code>
@ -123,11 +123,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.ByteString getData();
}
/**
* Protobuf type {@code bdchain.api.SendTransactionRequest.Transaction}
* Protobuf type {@code bdchain.api.txledger.SendTransactionRequest.Transaction}
*/
public static final class Transaction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.SendTransactionRequest.Transaction)
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.SendTransactionRequest.Transaction)
TransactionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Transaction.newBuilder() to construct.
@ -187,7 +187,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -207,32 +207,32 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionRequest_Transaction_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionRequest_Transaction_fieldAccessorTable
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.SendTransactionRequest.Transaction.class, bdchain.api.grpc.SendTransactionRequest.Transaction.Builder.class);
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.class, bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* <code>.bdchain.api.TransactionType type = 1;</code>
* <code>.bdchain.api.common.TransactionType type = 1;</code>
*/
public int getTypeValue() {
return type_;
}
/**
* <code>.bdchain.api.TransactionType type = 1;</code>
* <code>.bdchain.api.common.TransactionType type = 1;</code>
*/
public bdchain.api.grpc.TransactionType getType() {
public bdchain.api.grpc.common.TransactionType getType() {
@SuppressWarnings("deprecation")
bdchain.api.grpc.TransactionType result = bdchain.api.grpc.TransactionType.valueOf(type_);
return result == null ? bdchain.api.grpc.TransactionType.UNRECOGNIZED : result;
bdchain.api.grpc.common.TransactionType result = bdchain.api.grpc.common.TransactionType.valueOf(type_);
return result == null ? bdchain.api.grpc.common.TransactionType.UNRECOGNIZED : result;
}
public static final int FROM_FIELD_NUMBER = 2;
@ -276,7 +276,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (type_ != bdchain.api.grpc.TransactionType.RECORD.getNumber()) {
if (type_ != bdchain.api.grpc.common.TransactionType.RECORD.getNumber()) {
output.writeEnum(1, type_);
}
if (!from_.isEmpty()) {
@ -297,7 +297,7 @@ private static final long serialVersionUID = 0L;
if (size != -1) return size;
size = 0;
if (type_ != bdchain.api.grpc.TransactionType.RECORD.getNumber()) {
if (type_ != bdchain.api.grpc.common.TransactionType.RECORD.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
@ -323,21 +323,20 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.SendTransactionRequest.Transaction)) {
if (!(obj instanceof bdchain.api.grpc.txledger.SendTransactionRequest.Transaction)) {
return super.equals(obj);
}
bdchain.api.grpc.SendTransactionRequest.Transaction other = (bdchain.api.grpc.SendTransactionRequest.Transaction) obj;
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction other = (bdchain.api.grpc.txledger.SendTransactionRequest.Transaction) obj;
boolean result = true;
result = result && type_ == other.type_;
result = result && getFrom()
.equals(other.getFrom());
result = result && getTo()
.equals(other.getTo());
result = result && getData()
.equals(other.getData());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (type_ != other.type_) return false;
if (!getFrom()
.equals(other.getFrom())) return false;
if (!getTo()
.equals(other.getTo())) return false;
if (!getData()
.equals(other.getData())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -360,69 +359,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.SendTransactionRequest.Transaction parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.SendTransactionRequest.Transaction parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionRequest.Transaction parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.SendTransactionRequest.Transaction parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionRequest.Transaction parseFrom(byte[] data)
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.SendTransactionRequest.Transaction parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionRequest.Transaction parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.SendTransactionRequest.Transaction parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionRequest.Transaction parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.SendTransactionRequest.Transaction parseDelimitedFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionRequest.Transaction parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.SendTransactionRequest.Transaction parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -435,7 +434,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.SendTransactionRequest.Transaction prototype) {
public static Builder newBuilder(bdchain.api.grpc.txledger.SendTransactionRequest.Transaction prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -451,26 +450,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.SendTransactionRequest.Transaction}
* Protobuf type {@code bdchain.api.txledger.SendTransactionRequest.Transaction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.SendTransactionRequest.Transaction)
bdchain.api.grpc.SendTransactionRequest.TransactionOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.SendTransactionRequest.Transaction)
bdchain.api.grpc.txledger.SendTransactionRequest.TransactionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionRequest_Transaction_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionRequest_Transaction_fieldAccessorTable
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.SendTransactionRequest.Transaction.class, bdchain.api.grpc.SendTransactionRequest.Transaction.Builder.class);
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.class, bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder.class);
}
// Construct using bdchain.api.grpc.SendTransactionRequest.Transaction.newBuilder()
// Construct using bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -502,17 +501,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionRequest_Transaction_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.SendTransactionRequest.Transaction getDefaultInstanceForType() {
return bdchain.api.grpc.SendTransactionRequest.Transaction.getDefaultInstance();
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction getDefaultInstanceForType() {
return bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.SendTransactionRequest.Transaction build() {
bdchain.api.grpc.SendTransactionRequest.Transaction result = buildPartial();
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction build() {
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -520,8 +519,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.SendTransactionRequest.Transaction buildPartial() {
bdchain.api.grpc.SendTransactionRequest.Transaction result = new bdchain.api.grpc.SendTransactionRequest.Transaction(this);
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction buildPartial() {
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction result = new bdchain.api.grpc.txledger.SendTransactionRequest.Transaction(this);
result.type_ = type_;
result.from_ = from_;
result.to_ = to_;
@ -532,48 +531,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.SendTransactionRequest.Transaction) {
return mergeFrom((bdchain.api.grpc.SendTransactionRequest.Transaction)other);
if (other instanceof bdchain.api.grpc.txledger.SendTransactionRequest.Transaction) {
return mergeFrom((bdchain.api.grpc.txledger.SendTransactionRequest.Transaction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.SendTransactionRequest.Transaction other) {
if (other == bdchain.api.grpc.SendTransactionRequest.Transaction.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.txledger.SendTransactionRequest.Transaction other) {
if (other == bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
@ -601,11 +600,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.SendTransactionRequest.Transaction parsedMessage = null;
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.SendTransactionRequest.Transaction) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.txledger.SendTransactionRequest.Transaction) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -617,13 +616,13 @@ private static final long serialVersionUID = 0L;
private int type_ = 0;
/**
* <code>.bdchain.api.TransactionType type = 1;</code>
* <code>.bdchain.api.common.TransactionType type = 1;</code>
*/
public int getTypeValue() {
return type_;
}
/**
* <code>.bdchain.api.TransactionType type = 1;</code>
* <code>.bdchain.api.common.TransactionType type = 1;</code>
*/
public Builder setTypeValue(int value) {
type_ = value;
@ -631,17 +630,17 @@ private static final long serialVersionUID = 0L;
return this;
}
/**
* <code>.bdchain.api.TransactionType type = 1;</code>
* <code>.bdchain.api.common.TransactionType type = 1;</code>
*/
public bdchain.api.grpc.TransactionType getType() {
public bdchain.api.grpc.common.TransactionType getType() {
@SuppressWarnings("deprecation")
bdchain.api.grpc.TransactionType result = bdchain.api.grpc.TransactionType.valueOf(type_);
return result == null ? bdchain.api.grpc.TransactionType.UNRECOGNIZED : result;
bdchain.api.grpc.common.TransactionType result = bdchain.api.grpc.common.TransactionType.valueOf(type_);
return result == null ? bdchain.api.grpc.common.TransactionType.UNRECOGNIZED : result;
}
/**
* <code>.bdchain.api.TransactionType type = 1;</code>
* <code>.bdchain.api.common.TransactionType type = 1;</code>
*/
public Builder setType(bdchain.api.grpc.TransactionType value) {
public Builder setType(bdchain.api.grpc.common.TransactionType value) {
if (value == null) {
throw new NullPointerException();
}
@ -651,7 +650,7 @@ private static final long serialVersionUID = 0L;
return this;
}
/**
* <code>.bdchain.api.TransactionType type = 1;</code>
* <code>.bdchain.api.common.TransactionType type = 1;</code>
*/
public Builder clearType() {
@ -749,7 +748,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -759,16 +758,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.SendTransactionRequest.Transaction)
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.SendTransactionRequest.Transaction)
}
// @@protoc_insertion_point(class_scope:bdchain.api.SendTransactionRequest.Transaction)
private static final bdchain.api.grpc.SendTransactionRequest.Transaction DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.SendTransactionRequest.Transaction)
private static final bdchain.api.grpc.txledger.SendTransactionRequest.Transaction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.SendTransactionRequest.Transaction();
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.SendTransactionRequest.Transaction();
}
public static bdchain.api.grpc.SendTransactionRequest.Transaction getDefaultInstance() {
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -793,7 +792,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.SendTransactionRequest.Transaction getDefaultInstanceForType() {
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
@ -834,23 +833,23 @@ private static final long serialVersionUID = 0L;
}
public static final int TRANSACTION_FIELD_NUMBER = 2;
private bdchain.api.grpc.SendTransactionRequest.Transaction transaction_;
private bdchain.api.grpc.txledger.SendTransactionRequest.Transaction transaction_;
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
public boolean hasTransaction() {
return transaction_ != null;
}
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
public bdchain.api.grpc.SendTransactionRequest.Transaction getTransaction() {
return transaction_ == null ? bdchain.api.grpc.SendTransactionRequest.Transaction.getDefaultInstance() : transaction_;
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction getTransaction() {
return transaction_ == null ? bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.getDefaultInstance() : transaction_;
}
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
public bdchain.api.grpc.SendTransactionRequest.TransactionOrBuilder getTransactionOrBuilder() {
public bdchain.api.grpc.txledger.SendTransactionRequest.TransactionOrBuilder getTransactionOrBuilder() {
return getTransaction();
}
@ -900,21 +899,20 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.SendTransactionRequest)) {
if (!(obj instanceof bdchain.api.grpc.txledger.SendTransactionRequest)) {
return super.equals(obj);
}
bdchain.api.grpc.SendTransactionRequest other = (bdchain.api.grpc.SendTransactionRequest) obj;
bdchain.api.grpc.txledger.SendTransactionRequest other = (bdchain.api.grpc.txledger.SendTransactionRequest) obj;
boolean result = true;
result = result && getLedger()
.equals(other.getLedger());
result = result && (hasTransaction() == other.hasTransaction());
if (!getLedger()
.equals(other.getLedger())) return false;
if (hasTransaction() != other.hasTransaction()) return false;
if (hasTransaction()) {
result = result && getTransaction()
.equals(other.getTransaction());
if (!getTransaction()
.equals(other.getTransaction())) return false;
}
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -935,69 +933,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.SendTransactionRequest parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.SendTransactionRequest parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionRequest parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.SendTransactionRequest parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionRequest parseFrom(byte[] data)
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.SendTransactionRequest parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionRequest parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.SendTransactionRequest parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionRequest parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.txledger.SendTransactionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.SendTransactionRequest parseDelimitedFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionRequest parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.SendTransactionRequest parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -1010,7 +1008,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.SendTransactionRequest prototype) {
public static Builder newBuilder(bdchain.api.grpc.txledger.SendTransactionRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -1026,26 +1024,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.SendTransactionRequest}
* Protobuf type {@code bdchain.api.txledger.SendTransactionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.SendTransactionRequest)
bdchain.api.grpc.SendTransactionRequestOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.SendTransactionRequest)
bdchain.api.grpc.txledger.SendTransactionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionRequest_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionRequest_fieldAccessorTable
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.SendTransactionRequest.class, bdchain.api.grpc.SendTransactionRequest.Builder.class);
bdchain.api.grpc.txledger.SendTransactionRequest.class, bdchain.api.grpc.txledger.SendTransactionRequest.Builder.class);
}
// Construct using bdchain.api.grpc.SendTransactionRequest.newBuilder()
// Construct using bdchain.api.grpc.txledger.SendTransactionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -1077,17 +1075,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionRequest_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.SendTransactionRequest getDefaultInstanceForType() {
return bdchain.api.grpc.SendTransactionRequest.getDefaultInstance();
public bdchain.api.grpc.txledger.SendTransactionRequest getDefaultInstanceForType() {
return bdchain.api.grpc.txledger.SendTransactionRequest.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.SendTransactionRequest build() {
bdchain.api.grpc.SendTransactionRequest result = buildPartial();
public bdchain.api.grpc.txledger.SendTransactionRequest build() {
bdchain.api.grpc.txledger.SendTransactionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -1095,8 +1093,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.SendTransactionRequest buildPartial() {
bdchain.api.grpc.SendTransactionRequest result = new bdchain.api.grpc.SendTransactionRequest(this);
public bdchain.api.grpc.txledger.SendTransactionRequest buildPartial() {
bdchain.api.grpc.txledger.SendTransactionRequest result = new bdchain.api.grpc.txledger.SendTransactionRequest(this);
result.ledger_ = ledger_;
if (transactionBuilder_ == null) {
result.transaction_ = transaction_;
@ -1109,48 +1107,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.SendTransactionRequest) {
return mergeFrom((bdchain.api.grpc.SendTransactionRequest)other);
if (other instanceof bdchain.api.grpc.txledger.SendTransactionRequest) {
return mergeFrom((bdchain.api.grpc.txledger.SendTransactionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.SendTransactionRequest other) {
if (other == bdchain.api.grpc.SendTransactionRequest.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.txledger.SendTransactionRequest other) {
if (other == bdchain.api.grpc.txledger.SendTransactionRequest.getDefaultInstance()) return this;
if (!other.getLedger().isEmpty()) {
ledger_ = other.ledger_;
onChanged();
@ -1173,11 +1171,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.SendTransactionRequest parsedMessage = null;
bdchain.api.grpc.txledger.SendTransactionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.SendTransactionRequest) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.txledger.SendTransactionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -1256,29 +1254,29 @@ private static final long serialVersionUID = 0L;
return this;
}
private bdchain.api.grpc.SendTransactionRequest.Transaction transaction_ = null;
private bdchain.api.grpc.txledger.SendTransactionRequest.Transaction transaction_;
private com.google.protobuf.SingleFieldBuilderV3<
bdchain.api.grpc.SendTransactionRequest.Transaction, bdchain.api.grpc.SendTransactionRequest.Transaction.Builder, bdchain.api.grpc.SendTransactionRequest.TransactionOrBuilder> transactionBuilder_;
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction, bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder, bdchain.api.grpc.txledger.SendTransactionRequest.TransactionOrBuilder> transactionBuilder_;
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
public boolean hasTransaction() {
return transactionBuilder_ != null || transaction_ != null;
}
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
public bdchain.api.grpc.SendTransactionRequest.Transaction getTransaction() {
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction getTransaction() {
if (transactionBuilder_ == null) {
return transaction_ == null ? bdchain.api.grpc.SendTransactionRequest.Transaction.getDefaultInstance() : transaction_;
return transaction_ == null ? bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.getDefaultInstance() : transaction_;
} else {
return transactionBuilder_.getMessage();
}
}
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
public Builder setTransaction(bdchain.api.grpc.SendTransactionRequest.Transaction value) {
public Builder setTransaction(bdchain.api.grpc.txledger.SendTransactionRequest.Transaction value) {
if (transactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@ -1292,10 +1290,10 @@ private static final long serialVersionUID = 0L;
return this;
}
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
public Builder setTransaction(
bdchain.api.grpc.SendTransactionRequest.Transaction.Builder builderForValue) {
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder builderForValue) {
if (transactionBuilder_ == null) {
transaction_ = builderForValue.build();
onChanged();
@ -1306,13 +1304,13 @@ private static final long serialVersionUID = 0L;
return this;
}
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
public Builder mergeTransaction(bdchain.api.grpc.SendTransactionRequest.Transaction value) {
public Builder mergeTransaction(bdchain.api.grpc.txledger.SendTransactionRequest.Transaction value) {
if (transactionBuilder_ == null) {
if (transaction_ != null) {
transaction_ =
bdchain.api.grpc.SendTransactionRequest.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
} else {
transaction_ = value;
}
@ -1324,7 +1322,7 @@ private static final long serialVersionUID = 0L;
return this;
}
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
public Builder clearTransaction() {
if (transactionBuilder_ == null) {
@ -1338,33 +1336,33 @@ private static final long serialVersionUID = 0L;
return this;
}
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
public bdchain.api.grpc.SendTransactionRequest.Transaction.Builder getTransactionBuilder() {
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder getTransactionBuilder() {
onChanged();
return getTransactionFieldBuilder().getBuilder();
}
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
public bdchain.api.grpc.SendTransactionRequest.TransactionOrBuilder getTransactionOrBuilder() {
public bdchain.api.grpc.txledger.SendTransactionRequest.TransactionOrBuilder getTransactionOrBuilder() {
if (transactionBuilder_ != null) {
return transactionBuilder_.getMessageOrBuilder();
} else {
return transaction_ == null ?
bdchain.api.grpc.SendTransactionRequest.Transaction.getDefaultInstance() : transaction_;
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.getDefaultInstance() : transaction_;
}
}
/**
* <code>.bdchain.api.SendTransactionRequest.Transaction transaction = 2;</code>
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
bdchain.api.grpc.SendTransactionRequest.Transaction, bdchain.api.grpc.SendTransactionRequest.Transaction.Builder, bdchain.api.grpc.SendTransactionRequest.TransactionOrBuilder>
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction, bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder, bdchain.api.grpc.txledger.SendTransactionRequest.TransactionOrBuilder>
getTransactionFieldBuilder() {
if (transactionBuilder_ == null) {
transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
bdchain.api.grpc.SendTransactionRequest.Transaction, bdchain.api.grpc.SendTransactionRequest.Transaction.Builder, bdchain.api.grpc.SendTransactionRequest.TransactionOrBuilder>(
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction, bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder, bdchain.api.grpc.txledger.SendTransactionRequest.TransactionOrBuilder>(
getTransaction(),
getParentForChildren(),
isClean());
@ -1375,7 +1373,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -1385,16 +1383,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.SendTransactionRequest)
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.SendTransactionRequest)
}
// @@protoc_insertion_point(class_scope:bdchain.api.SendTransactionRequest)
private static final bdchain.api.grpc.SendTransactionRequest DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.SendTransactionRequest)
private static final bdchain.api.grpc.txledger.SendTransactionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.SendTransactionRequest();
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.SendTransactionRequest();
}
public static bdchain.api.grpc.SendTransactionRequest getDefaultInstance() {
public static bdchain.api.grpc.txledger.SendTransactionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -1419,7 +1417,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.SendTransactionRequest getDefaultInstanceForType() {
public bdchain.api.grpc.txledger.SendTransactionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -0,0 +1,32 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
public interface SendTransactionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.SendTransactionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string ledger = 1;</code>
*/
java.lang.String getLedger();
/**
* <code>string ledger = 1;</code>
*/
com.google.protobuf.ByteString
getLedgerBytes();
/**
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
boolean hasTransaction();
/**
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction getTransaction();
/**
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
*/
bdchain.api.grpc.txledger.SendTransactionRequest.TransactionOrBuilder getTransactionOrBuilder();
}

View File

@ -1,14 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc;
package bdchain.api.grpc.txledger;
/**
* Protobuf type {@code bdchain.api.SendTransactionResponse}
* Protobuf type {@code bdchain.api.txledger.SendTransactionResponse}
*/
public final class SendTransactionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bdchain.api.SendTransactionResponse)
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.SendTransactionResponse)
SendTransactionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SendTransactionResponse.newBuilder() to construct.
@ -49,7 +49,7 @@ private static final long serialVersionUID = 0L;
break;
}
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -69,15 +69,15 @@ private static final long serialVersionUID = 0L;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionResponse_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionResponse_fieldAccessorTable
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.SendTransactionResponse.class, bdchain.api.grpc.SendTransactionResponse.Builder.class);
bdchain.api.grpc.txledger.SendTransactionResponse.class, bdchain.api.grpc.txledger.SendTransactionResponse.Builder.class);
}
public static final int HASH_FIELD_NUMBER = 1;
@ -129,16 +129,15 @@ private static final long serialVersionUID = 0L;
if (obj == this) {
return true;
}
if (!(obj instanceof bdchain.api.grpc.SendTransactionResponse)) {
if (!(obj instanceof bdchain.api.grpc.txledger.SendTransactionResponse)) {
return super.equals(obj);
}
bdchain.api.grpc.SendTransactionResponse other = (bdchain.api.grpc.SendTransactionResponse) obj;
bdchain.api.grpc.txledger.SendTransactionResponse other = (bdchain.api.grpc.txledger.SendTransactionResponse) obj;
boolean result = true;
result = result && getHash()
.equals(other.getHash());
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!getHash()
.equals(other.getHash())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -155,69 +154,69 @@ private static final long serialVersionUID = 0L;
return hash;
}
public static bdchain.api.grpc.SendTransactionResponse parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.SendTransactionResponse parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionResponse parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.SendTransactionResponse parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionResponse parseFrom(byte[] data)
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static bdchain.api.grpc.SendTransactionResponse parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionResponse parseFrom(java.io.InputStream input)
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.SendTransactionResponse parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionResponse parseDelimitedFrom(java.io.InputStream input)
public static bdchain.api.grpc.txledger.SendTransactionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static bdchain.api.grpc.SendTransactionResponse parseDelimitedFrom(
public static bdchain.api.grpc.txledger.SendTransactionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static bdchain.api.grpc.SendTransactionResponse parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static bdchain.api.grpc.SendTransactionResponse parseFrom(
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@ -230,7 +229,7 @@ private static final long serialVersionUID = 0L;
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(bdchain.api.grpc.SendTransactionResponse prototype) {
public static Builder newBuilder(bdchain.api.grpc.txledger.SendTransactionResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@ -246,26 +245,26 @@ private static final long serialVersionUID = 0L;
return builder;
}
/**
* Protobuf type {@code bdchain.api.SendTransactionResponse}
* Protobuf type {@code bdchain.api.txledger.SendTransactionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:bdchain.api.SendTransactionResponse)
bdchain.api.grpc.SendTransactionResponseOrBuilder {
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.SendTransactionResponse)
bdchain.api.grpc.txledger.SendTransactionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionResponse_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionResponse_fieldAccessorTable
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
bdchain.api.grpc.SendTransactionResponse.class, bdchain.api.grpc.SendTransactionResponse.Builder.class);
bdchain.api.grpc.txledger.SendTransactionResponse.class, bdchain.api.grpc.txledger.SendTransactionResponse.Builder.class);
}
// Construct using bdchain.api.grpc.SendTransactionResponse.newBuilder()
// Construct using bdchain.api.grpc.txledger.SendTransactionResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@ -291,17 +290,17 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return bdchain.api.grpc.TransactionLedgerProto.internal_static_bdchain_api_SendTransactionResponse_descriptor;
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionResponse_descriptor;
}
@java.lang.Override
public bdchain.api.grpc.SendTransactionResponse getDefaultInstanceForType() {
return bdchain.api.grpc.SendTransactionResponse.getDefaultInstance();
public bdchain.api.grpc.txledger.SendTransactionResponse getDefaultInstanceForType() {
return bdchain.api.grpc.txledger.SendTransactionResponse.getDefaultInstance();
}
@java.lang.Override
public bdchain.api.grpc.SendTransactionResponse build() {
bdchain.api.grpc.SendTransactionResponse result = buildPartial();
public bdchain.api.grpc.txledger.SendTransactionResponse build() {
bdchain.api.grpc.txledger.SendTransactionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@ -309,8 +308,8 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.SendTransactionResponse buildPartial() {
bdchain.api.grpc.SendTransactionResponse result = new bdchain.api.grpc.SendTransactionResponse(this);
public bdchain.api.grpc.txledger.SendTransactionResponse buildPartial() {
bdchain.api.grpc.txledger.SendTransactionResponse result = new bdchain.api.grpc.txledger.SendTransactionResponse(this);
result.hash_ = hash_;
onBuilt();
return result;
@ -318,48 +317,48 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof bdchain.api.grpc.SendTransactionResponse) {
return mergeFrom((bdchain.api.grpc.SendTransactionResponse)other);
if (other instanceof bdchain.api.grpc.txledger.SendTransactionResponse) {
return mergeFrom((bdchain.api.grpc.txledger.SendTransactionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(bdchain.api.grpc.SendTransactionResponse other) {
if (other == bdchain.api.grpc.SendTransactionResponse.getDefaultInstance()) return this;
public Builder mergeFrom(bdchain.api.grpc.txledger.SendTransactionResponse other) {
if (other == bdchain.api.grpc.txledger.SendTransactionResponse.getDefaultInstance()) return this;
if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
setHash(other.getHash());
}
@ -378,11 +377,11 @@ private static final long serialVersionUID = 0L;
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
bdchain.api.grpc.SendTransactionResponse parsedMessage = null;
bdchain.api.grpc.txledger.SendTransactionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (bdchain.api.grpc.SendTransactionResponse) e.getUnfinishedMessage();
parsedMessage = (bdchain.api.grpc.txledger.SendTransactionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
@ -423,7 +422,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
@ -433,16 +432,16 @@ private static final long serialVersionUID = 0L;
}
// @@protoc_insertion_point(builder_scope:bdchain.api.SendTransactionResponse)
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.SendTransactionResponse)
}
// @@protoc_insertion_point(class_scope:bdchain.api.SendTransactionResponse)
private static final bdchain.api.grpc.SendTransactionResponse DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.SendTransactionResponse)
private static final bdchain.api.grpc.txledger.SendTransactionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new bdchain.api.grpc.SendTransactionResponse();
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.SendTransactionResponse();
}
public static bdchain.api.grpc.SendTransactionResponse getDefaultInstance() {
public static bdchain.api.grpc.txledger.SendTransactionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@ -467,7 +466,7 @@ private static final long serialVersionUID = 0L;
}
@java.lang.Override
public bdchain.api.grpc.SendTransactionResponse getDefaultInstanceForType() {
public bdchain.api.grpc.txledger.SendTransactionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}

View File

@ -1,10 +1,10 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc;
package bdchain.api.grpc.txledger;
public interface SendTransactionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.SendTransactionResponse)
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.SendTransactionResponse)
com.google.protobuf.MessageOrBuilder {
/**

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
package bdchain.api.grpc;
package bdchain.api.grpc.txledger;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
@ -18,39 +18,39 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.15.0)",
value = "by gRPC proto compiler (version 1.20.0)",
comments = "Source: bdchain/api/tx_ledger.proto")
public final class TransactionLedgerGrpc {
private TransactionLedgerGrpc() {}
public static final String SERVICE_NAME = "bdchain.api.TransactionLedger";
public static final String SERVICE_NAME = "bdchain.api.txledger.TransactionLedger";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<com.google.protobuf.Empty,
bdchain.api.grpc.ClientVersionResponse> getClientVersionMethod;
bdchain.api.grpc.common.ClientVersionResponse> getClientVersionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ClientVersion",
requestType = com.google.protobuf.Empty.class,
responseType = bdchain.api.grpc.ClientVersionResponse.class,
responseType = bdchain.api.grpc.common.ClientVersionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<com.google.protobuf.Empty,
bdchain.api.grpc.ClientVersionResponse> getClientVersionMethod() {
io.grpc.MethodDescriptor<com.google.protobuf.Empty, bdchain.api.grpc.ClientVersionResponse> getClientVersionMethod;
bdchain.api.grpc.common.ClientVersionResponse> getClientVersionMethod() {
io.grpc.MethodDescriptor<com.google.protobuf.Empty, bdchain.api.grpc.common.ClientVersionResponse> getClientVersionMethod;
if ((getClientVersionMethod = TransactionLedgerGrpc.getClientVersionMethod) == null) {
synchronized (TransactionLedgerGrpc.class) {
if ((getClientVersionMethod = TransactionLedgerGrpc.getClientVersionMethod) == null) {
TransactionLedgerGrpc.getClientVersionMethod = getClientVersionMethod =
io.grpc.MethodDescriptor.<com.google.protobuf.Empty, bdchain.api.grpc.ClientVersionResponse>newBuilder()
io.grpc.MethodDescriptor.<com.google.protobuf.Empty, bdchain.api.grpc.common.ClientVersionResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bdchain.api.TransactionLedger", "ClientVersion"))
"bdchain.api.txledger.TransactionLedger", "ClientVersion"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.ClientVersionResponse.getDefaultInstance()))
bdchain.api.grpc.common.ClientVersionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionLedgerMethodDescriptorSupplier("ClientVersion"))
.build();
}
@ -59,30 +59,30 @@ public final class TransactionLedgerGrpc {
return getClientVersionMethod;
}
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.CreateLedgerRequest,
bdchain.api.grpc.CreateLedgerResponse> getCreateLedgerMethod;
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.txledger.CreateLedgerRequest,
bdchain.api.grpc.txledger.CreateLedgerResponse> getCreateLedgerMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateLedger",
requestType = bdchain.api.grpc.CreateLedgerRequest.class,
responseType = bdchain.api.grpc.CreateLedgerResponse.class,
requestType = bdchain.api.grpc.txledger.CreateLedgerRequest.class,
responseType = bdchain.api.grpc.txledger.CreateLedgerResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<bdchain.api.grpc.CreateLedgerRequest,
bdchain.api.grpc.CreateLedgerResponse> getCreateLedgerMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.CreateLedgerRequest, bdchain.api.grpc.CreateLedgerResponse> getCreateLedgerMethod;
public static io.grpc.MethodDescriptor<bdchain.api.grpc.txledger.CreateLedgerRequest,
bdchain.api.grpc.txledger.CreateLedgerResponse> getCreateLedgerMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.txledger.CreateLedgerRequest, bdchain.api.grpc.txledger.CreateLedgerResponse> getCreateLedgerMethod;
if ((getCreateLedgerMethod = TransactionLedgerGrpc.getCreateLedgerMethod) == null) {
synchronized (TransactionLedgerGrpc.class) {
if ((getCreateLedgerMethod = TransactionLedgerGrpc.getCreateLedgerMethod) == null) {
TransactionLedgerGrpc.getCreateLedgerMethod = getCreateLedgerMethod =
io.grpc.MethodDescriptor.<bdchain.api.grpc.CreateLedgerRequest, bdchain.api.grpc.CreateLedgerResponse>newBuilder()
io.grpc.MethodDescriptor.<bdchain.api.grpc.txledger.CreateLedgerRequest, bdchain.api.grpc.txledger.CreateLedgerResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bdchain.api.TransactionLedger", "CreateLedger"))
"bdchain.api.txledger.TransactionLedger", "CreateLedger"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.CreateLedgerRequest.getDefaultInstance()))
bdchain.api.grpc.txledger.CreateLedgerRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.CreateLedgerResponse.getDefaultInstance()))
bdchain.api.grpc.txledger.CreateLedgerResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionLedgerMethodDescriptorSupplier("CreateLedger"))
.build();
}
@ -92,29 +92,29 @@ public final class TransactionLedgerGrpc {
}
private static volatile io.grpc.MethodDescriptor<com.google.protobuf.Empty,
bdchain.api.grpc.GetLedgersResponse> getGetLedgersMethod;
bdchain.api.grpc.txledger.GetLedgersResponse> getGetLedgersMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetLedgers",
requestType = com.google.protobuf.Empty.class,
responseType = bdchain.api.grpc.GetLedgersResponse.class,
responseType = bdchain.api.grpc.txledger.GetLedgersResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<com.google.protobuf.Empty,
bdchain.api.grpc.GetLedgersResponse> getGetLedgersMethod() {
io.grpc.MethodDescriptor<com.google.protobuf.Empty, bdchain.api.grpc.GetLedgersResponse> getGetLedgersMethod;
bdchain.api.grpc.txledger.GetLedgersResponse> getGetLedgersMethod() {
io.grpc.MethodDescriptor<com.google.protobuf.Empty, bdchain.api.grpc.txledger.GetLedgersResponse> getGetLedgersMethod;
if ((getGetLedgersMethod = TransactionLedgerGrpc.getGetLedgersMethod) == null) {
synchronized (TransactionLedgerGrpc.class) {
if ((getGetLedgersMethod = TransactionLedgerGrpc.getGetLedgersMethod) == null) {
TransactionLedgerGrpc.getGetLedgersMethod = getGetLedgersMethod =
io.grpc.MethodDescriptor.<com.google.protobuf.Empty, bdchain.api.grpc.GetLedgersResponse>newBuilder()
io.grpc.MethodDescriptor.<com.google.protobuf.Empty, bdchain.api.grpc.txledger.GetLedgersResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bdchain.api.TransactionLedger", "GetLedgers"))
"bdchain.api.txledger.TransactionLedger", "GetLedgers"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.GetLedgersResponse.getDefaultInstance()))
bdchain.api.grpc.txledger.GetLedgersResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionLedgerMethodDescriptorSupplier("GetLedgers"))
.build();
}
@ -123,30 +123,94 @@ public final class TransactionLedgerGrpc {
return getGetLedgersMethod;
}
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.SendTransactionRequest,
bdchain.api.grpc.SendTransactionResponse> getSendTransactionMethod;
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.txledger.BlockCountRequest,
bdchain.api.grpc.txledger.BlockCountResponse> getBlockCountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BlockCount",
requestType = bdchain.api.grpc.txledger.BlockCountRequest.class,
responseType = bdchain.api.grpc.txledger.BlockCountResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<bdchain.api.grpc.txledger.BlockCountRequest,
bdchain.api.grpc.txledger.BlockCountResponse> getBlockCountMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.txledger.BlockCountRequest, bdchain.api.grpc.txledger.BlockCountResponse> getBlockCountMethod;
if ((getBlockCountMethod = TransactionLedgerGrpc.getBlockCountMethod) == null) {
synchronized (TransactionLedgerGrpc.class) {
if ((getBlockCountMethod = TransactionLedgerGrpc.getBlockCountMethod) == null) {
TransactionLedgerGrpc.getBlockCountMethod = getBlockCountMethod =
io.grpc.MethodDescriptor.<bdchain.api.grpc.txledger.BlockCountRequest, bdchain.api.grpc.txledger.BlockCountResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bdchain.api.txledger.TransactionLedger", "BlockCount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.txledger.BlockCountRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.txledger.BlockCountResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionLedgerMethodDescriptorSupplier("BlockCount"))
.build();
}
}
}
return getBlockCountMethod;
}
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.txledger.GetBlocksRequest,
bdchain.api.grpc.txledger.GetBlocksResponse> getGetBlocksMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBlocks",
requestType = bdchain.api.grpc.txledger.GetBlocksRequest.class,
responseType = bdchain.api.grpc.txledger.GetBlocksResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<bdchain.api.grpc.txledger.GetBlocksRequest,
bdchain.api.grpc.txledger.GetBlocksResponse> getGetBlocksMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.txledger.GetBlocksRequest, bdchain.api.grpc.txledger.GetBlocksResponse> getGetBlocksMethod;
if ((getGetBlocksMethod = TransactionLedgerGrpc.getGetBlocksMethod) == null) {
synchronized (TransactionLedgerGrpc.class) {
if ((getGetBlocksMethod = TransactionLedgerGrpc.getGetBlocksMethod) == null) {
TransactionLedgerGrpc.getGetBlocksMethod = getGetBlocksMethod =
io.grpc.MethodDescriptor.<bdchain.api.grpc.txledger.GetBlocksRequest, bdchain.api.grpc.txledger.GetBlocksResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bdchain.api.txledger.TransactionLedger", "GetBlocks"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.txledger.GetBlocksRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.txledger.GetBlocksResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionLedgerMethodDescriptorSupplier("GetBlocks"))
.build();
}
}
}
return getGetBlocksMethod;
}
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.txledger.SendTransactionRequest,
bdchain.api.grpc.txledger.SendTransactionResponse> getSendTransactionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SendTransaction",
requestType = bdchain.api.grpc.SendTransactionRequest.class,
responseType = bdchain.api.grpc.SendTransactionResponse.class,
requestType = bdchain.api.grpc.txledger.SendTransactionRequest.class,
responseType = bdchain.api.grpc.txledger.SendTransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<bdchain.api.grpc.SendTransactionRequest,
bdchain.api.grpc.SendTransactionResponse> getSendTransactionMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.SendTransactionRequest, bdchain.api.grpc.SendTransactionResponse> getSendTransactionMethod;
public static io.grpc.MethodDescriptor<bdchain.api.grpc.txledger.SendTransactionRequest,
bdchain.api.grpc.txledger.SendTransactionResponse> getSendTransactionMethod() {
io.grpc.MethodDescriptor<bdchain.api.grpc.txledger.SendTransactionRequest, bdchain.api.grpc.txledger.SendTransactionResponse> getSendTransactionMethod;
if ((getSendTransactionMethod = TransactionLedgerGrpc.getSendTransactionMethod) == null) {
synchronized (TransactionLedgerGrpc.class) {
if ((getSendTransactionMethod = TransactionLedgerGrpc.getSendTransactionMethod) == null) {
TransactionLedgerGrpc.getSendTransactionMethod = getSendTransactionMethod =
io.grpc.MethodDescriptor.<bdchain.api.grpc.SendTransactionRequest, bdchain.api.grpc.SendTransactionResponse>newBuilder()
io.grpc.MethodDescriptor.<bdchain.api.grpc.txledger.SendTransactionRequest, bdchain.api.grpc.txledger.SendTransactionResponse>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bdchain.api.TransactionLedger", "SendTransaction"))
"bdchain.api.txledger.TransactionLedger", "SendTransaction"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.SendTransactionRequest.getDefaultInstance()))
bdchain.api.grpc.txledger.SendTransactionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
bdchain.api.grpc.SendTransactionResponse.getDefaultInstance()))
bdchain.api.grpc.txledger.SendTransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionLedgerMethodDescriptorSupplier("SendTransaction"))
.build();
}
@ -185,28 +249,42 @@ public final class TransactionLedgerGrpc {
/**
*/
public void clientVersion(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.ClientVersionResponse> responseObserver) {
io.grpc.stub.StreamObserver<bdchain.api.grpc.common.ClientVersionResponse> responseObserver) {
asyncUnimplementedUnaryCall(getClientVersionMethod(), responseObserver);
}
/**
*/
public void createLedger(bdchain.api.grpc.CreateLedgerRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.CreateLedgerResponse> responseObserver) {
public void createLedger(bdchain.api.grpc.txledger.CreateLedgerRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.CreateLedgerResponse> responseObserver) {
asyncUnimplementedUnaryCall(getCreateLedgerMethod(), responseObserver);
}
/**
*/
public void getLedgers(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.GetLedgersResponse> responseObserver) {
io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.GetLedgersResponse> responseObserver) {
asyncUnimplementedUnaryCall(getGetLedgersMethod(), responseObserver);
}
/**
*/
public void sendTransaction(bdchain.api.grpc.SendTransactionRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.SendTransactionResponse> responseObserver) {
public void blockCount(bdchain.api.grpc.txledger.BlockCountRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.BlockCountResponse> responseObserver) {
asyncUnimplementedUnaryCall(getBlockCountMethod(), responseObserver);
}
/**
*/
public void getBlocks(bdchain.api.grpc.txledger.GetBlocksRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.GetBlocksResponse> responseObserver) {
asyncUnimplementedUnaryCall(getGetBlocksMethod(), responseObserver);
}
/**
*/
public void sendTransaction(bdchain.api.grpc.txledger.SendTransactionRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.SendTransactionResponse> responseObserver) {
asyncUnimplementedUnaryCall(getSendTransactionMethod(), responseObserver);
}
@ -217,28 +295,42 @@ public final class TransactionLedgerGrpc {
asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
bdchain.api.grpc.ClientVersionResponse>(
bdchain.api.grpc.common.ClientVersionResponse>(
this, METHODID_CLIENT_VERSION)))
.addMethod(
getCreateLedgerMethod(),
asyncUnaryCall(
new MethodHandlers<
bdchain.api.grpc.CreateLedgerRequest,
bdchain.api.grpc.CreateLedgerResponse>(
bdchain.api.grpc.txledger.CreateLedgerRequest,
bdchain.api.grpc.txledger.CreateLedgerResponse>(
this, METHODID_CREATE_LEDGER)))
.addMethod(
getGetLedgersMethod(),
asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
bdchain.api.grpc.GetLedgersResponse>(
bdchain.api.grpc.txledger.GetLedgersResponse>(
this, METHODID_GET_LEDGERS)))
.addMethod(
getBlockCountMethod(),
asyncUnaryCall(
new MethodHandlers<
bdchain.api.grpc.txledger.BlockCountRequest,
bdchain.api.grpc.txledger.BlockCountResponse>(
this, METHODID_BLOCK_COUNT)))
.addMethod(
getGetBlocksMethod(),
asyncUnaryCall(
new MethodHandlers<
bdchain.api.grpc.txledger.GetBlocksRequest,
bdchain.api.grpc.txledger.GetBlocksResponse>(
this, METHODID_GET_BLOCKS)))
.addMethod(
getSendTransactionMethod(),
asyncUnaryCall(
new MethodHandlers<
bdchain.api.grpc.SendTransactionRequest,
bdchain.api.grpc.SendTransactionResponse>(
bdchain.api.grpc.txledger.SendTransactionRequest,
bdchain.api.grpc.txledger.SendTransactionResponse>(
this, METHODID_SEND_TRANSACTION)))
.build();
}
@ -265,15 +357,15 @@ public final class TransactionLedgerGrpc {
/**
*/
public void clientVersion(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.ClientVersionResponse> responseObserver) {
io.grpc.stub.StreamObserver<bdchain.api.grpc.common.ClientVersionResponse> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getClientVersionMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void createLedger(bdchain.api.grpc.CreateLedgerRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.CreateLedgerResponse> responseObserver) {
public void createLedger(bdchain.api.grpc.txledger.CreateLedgerRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.CreateLedgerResponse> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCreateLedgerMethod(), getCallOptions()), request, responseObserver);
}
@ -281,15 +373,31 @@ public final class TransactionLedgerGrpc {
/**
*/
public void getLedgers(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.GetLedgersResponse> responseObserver) {
io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.GetLedgersResponse> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetLedgersMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void sendTransaction(bdchain.api.grpc.SendTransactionRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.SendTransactionResponse> responseObserver) {
public void blockCount(bdchain.api.grpc.txledger.BlockCountRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.BlockCountResponse> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getBlockCountMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getBlocks(bdchain.api.grpc.txledger.GetBlocksRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.GetBlocksResponse> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetBlocksMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void sendTransaction(bdchain.api.grpc.txledger.SendTransactionRequest request,
io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.SendTransactionResponse> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getSendTransactionMethod(), getCallOptions()), request, responseObserver);
}
@ -315,28 +423,42 @@ public final class TransactionLedgerGrpc {
/**
*/
public bdchain.api.grpc.ClientVersionResponse clientVersion(com.google.protobuf.Empty request) {
public bdchain.api.grpc.common.ClientVersionResponse clientVersion(com.google.protobuf.Empty request) {
return blockingUnaryCall(
getChannel(), getClientVersionMethod(), getCallOptions(), request);
}
/**
*/
public bdchain.api.grpc.CreateLedgerResponse createLedger(bdchain.api.grpc.CreateLedgerRequest request) {
public bdchain.api.grpc.txledger.CreateLedgerResponse createLedger(bdchain.api.grpc.txledger.CreateLedgerRequest request) {
return blockingUnaryCall(
getChannel(), getCreateLedgerMethod(), getCallOptions(), request);
}
/**
*/
public bdchain.api.grpc.GetLedgersResponse getLedgers(com.google.protobuf.Empty request) {
public bdchain.api.grpc.txledger.GetLedgersResponse getLedgers(com.google.protobuf.Empty request) {
return blockingUnaryCall(
getChannel(), getGetLedgersMethod(), getCallOptions(), request);
}
/**
*/
public bdchain.api.grpc.SendTransactionResponse sendTransaction(bdchain.api.grpc.SendTransactionRequest request) {
public bdchain.api.grpc.txledger.BlockCountResponse blockCount(bdchain.api.grpc.txledger.BlockCountRequest request) {
return blockingUnaryCall(
getChannel(), getBlockCountMethod(), getCallOptions(), request);
}
/**
*/
public bdchain.api.grpc.txledger.GetBlocksResponse getBlocks(bdchain.api.grpc.txledger.GetBlocksRequest request) {
return blockingUnaryCall(
getChannel(), getGetBlocksMethod(), getCallOptions(), request);
}
/**
*/
public bdchain.api.grpc.txledger.SendTransactionResponse sendTransaction(bdchain.api.grpc.txledger.SendTransactionRequest request) {
return blockingUnaryCall(
getChannel(), getSendTransactionMethod(), getCallOptions(), request);
}
@ -362,7 +484,7 @@ public final class TransactionLedgerGrpc {
/**
*/
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.ClientVersionResponse> clientVersion(
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.common.ClientVersionResponse> clientVersion(
com.google.protobuf.Empty request) {
return futureUnaryCall(
getChannel().newCall(getClientVersionMethod(), getCallOptions()), request);
@ -370,15 +492,15 @@ public final class TransactionLedgerGrpc {
/**
*/
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.CreateLedgerResponse> createLedger(
bdchain.api.grpc.CreateLedgerRequest request) {
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.txledger.CreateLedgerResponse> createLedger(
bdchain.api.grpc.txledger.CreateLedgerRequest request) {
return futureUnaryCall(
getChannel().newCall(getCreateLedgerMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.GetLedgersResponse> getLedgers(
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.txledger.GetLedgersResponse> getLedgers(
com.google.protobuf.Empty request) {
return futureUnaryCall(
getChannel().newCall(getGetLedgersMethod(), getCallOptions()), request);
@ -386,8 +508,24 @@ public final class TransactionLedgerGrpc {
/**
*/
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.SendTransactionResponse> sendTransaction(
bdchain.api.grpc.SendTransactionRequest request) {
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.txledger.BlockCountResponse> blockCount(
bdchain.api.grpc.txledger.BlockCountRequest request) {
return futureUnaryCall(
getChannel().newCall(getBlockCountMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.txledger.GetBlocksResponse> getBlocks(
bdchain.api.grpc.txledger.GetBlocksRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetBlocksMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.txledger.SendTransactionResponse> sendTransaction(
bdchain.api.grpc.txledger.SendTransactionRequest request) {
return futureUnaryCall(
getChannel().newCall(getSendTransactionMethod(), getCallOptions()), request);
}
@ -396,7 +534,9 @@ public final class TransactionLedgerGrpc {
private static final int METHODID_CLIENT_VERSION = 0;
private static final int METHODID_CREATE_LEDGER = 1;
private static final int METHODID_GET_LEDGERS = 2;
private static final int METHODID_SEND_TRANSACTION = 3;
private static final int METHODID_BLOCK_COUNT = 3;
private static final int METHODID_GET_BLOCKS = 4;
private static final int METHODID_SEND_TRANSACTION = 5;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
@ -417,19 +557,27 @@ public final class TransactionLedgerGrpc {
switch (methodId) {
case METHODID_CLIENT_VERSION:
serviceImpl.clientVersion((com.google.protobuf.Empty) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.ClientVersionResponse>) responseObserver);
(io.grpc.stub.StreamObserver<bdchain.api.grpc.common.ClientVersionResponse>) responseObserver);
break;
case METHODID_CREATE_LEDGER:
serviceImpl.createLedger((bdchain.api.grpc.CreateLedgerRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.CreateLedgerResponse>) responseObserver);
serviceImpl.createLedger((bdchain.api.grpc.txledger.CreateLedgerRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.CreateLedgerResponse>) responseObserver);
break;
case METHODID_GET_LEDGERS:
serviceImpl.getLedgers((com.google.protobuf.Empty) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.GetLedgersResponse>) responseObserver);
(io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.GetLedgersResponse>) responseObserver);
break;
case METHODID_BLOCK_COUNT:
serviceImpl.blockCount((bdchain.api.grpc.txledger.BlockCountRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.BlockCountResponse>) responseObserver);
break;
case METHODID_GET_BLOCKS:
serviceImpl.getBlocks((bdchain.api.grpc.txledger.GetBlocksRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.GetBlocksResponse>) responseObserver);
break;
case METHODID_SEND_TRANSACTION:
serviceImpl.sendTransaction((bdchain.api.grpc.SendTransactionRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.SendTransactionResponse>) responseObserver);
serviceImpl.sendTransaction((bdchain.api.grpc.txledger.SendTransactionRequest) request,
(io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.SendTransactionResponse>) responseObserver);
break;
default:
throw new AssertionError();
@ -453,7 +601,7 @@ public final class TransactionLedgerGrpc {
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return bdchain.api.grpc.TransactionLedgerProto.getDescriptor();
return bdchain.api.grpc.txledger.TransactionLedgerProto.getDescriptor();
}
@java.lang.Override
@ -495,6 +643,8 @@ public final class TransactionLedgerGrpc {
.addMethod(getClientVersionMethod())
.addMethod(getCreateLedgerMethod())
.addMethod(getGetLedgersMethod())
.addMethod(getBlockCountMethod())
.addMethod(getGetBlocksMethod())
.addMethod(getSendTransactionMethod())
.build();
}

View File

@ -0,0 +1,225 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
public final class TransactionLedgerProto {
private TransactionLedgerProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_txledger_Transaction_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_txledger_Transaction_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_txledger_Block_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_txledger_Block_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_txledger_CreateLedgerRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_txledger_CreateLedgerRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_txledger_CreateLedgerResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_txledger_CreateLedgerResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_txledger_GetLedgersResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_txledger_GetLedgersResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_txledger_BlockCountRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_txledger_BlockCountRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_txledger_BlockCountResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_txledger_BlockCountResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_txledger_GetBlocksRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_txledger_GetBlocksRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_txledger_GetBlocksResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_txledger_GetBlocksResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_txledger_SendTransactionRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_txledger_SendTransactionRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_bdchain_api_txledger_SendTransactionResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bdchain_api_txledger_SendTransactionResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\033bdchain/api/tx_ledger.proto\022\024bdchain.a" +
"pi.txledger\032\033google/protobuf/empty.proto" +
"\032\030bdchain/api/common.proto\"\311\001\n\013Transacti" +
"on\022\022\n\nblock_hash\030\001 \001(\014\022\r\n\005index\030\002 \001(\r\022\014\n" +
"\004hash\030\003 \001(\014\0221\n\004type\030\004 \001(\0162#.bdchain.api." +
"common.TransactionType\022\014\n\004from\030\005 \001(\014\022\r\n\005" +
"nonce\030\006 \001(\004\022\n\n\002to\030\007 \001(\014\022\014\n\004data\030\010 \001(\014\022\t\n" +
"\001v\030\t \001(\014\022\t\n\001r\030\n \001(\014\022\t\n\001s\030\013 \001(\014\"\337\001\n\005Block" +
"\022\r\n\005index\030\001 \001(\004\022\014\n\004hash\030\002 \001(\014\022\025\n\rparent_" +
"hashes\030\003 \003(\014\022\021\n\twitnesses\030\004 \003(\014\022\021\n\ttimes" +
"tamp\030\005 \001(\003\022\014\n\004size\030\006 \001(\004\022\031\n\021transactions" +
"_root\030\007 \001(\014\0227\n\014transactions\030\010 \003(\0132!.bdch" +
"ain.api.txledger.Transaction\022\032\n\022transact" +
"ion_hashes\030\t \003(\014\"#\n\023CreateLedgerRequest\022" +
"\014\n\004name\030\001 \001(\t\"\"\n\024CreateLedgerResponse\022\n\n" +
"\002ok\030\001 \001(\010\"%\n\022GetLedgersResponse\022\017\n\007ledge" +
"rs\030\001 \003(\t\"#\n\021BlockCountRequest\022\016\n\006ledger\030" +
"\001 \001(\t\")\n\022BlockCountResponse\022\023\n\013block_cou" +
"nt\030\001 \001(\004\"_\n\020GetBlocksRequest\022\016\n\006ledger\030\001" +
" \001(\t\022\022\n\nfrom_index\030\002 \001(\004\022\r\n\005count\030\003 \001(\r\022" +
"\030\n\020full_transaction\030\004 \001(\010\"@\n\021GetBlocksRe" +
"sponse\022+\n\006blocks\030\001 \003(\0132\033.bdchain.api.txl" +
"edger.Block\"\341\001\n\026SendTransactionRequest\022\016" +
"\n\006ledger\030\001 \001(\t\022M\n\013transaction\030\002 \001(\01328.bd" +
"chain.api.txledger.SendTransactionReques" +
"t.Transaction\032h\n\013Transaction\0221\n\004type\030\001 \001" +
"(\0162#.bdchain.api.common.TransactionType\022" +
"\014\n\004from\030\002 \001(\014\022\n\n\002to\030\003 \001(\014\022\014\n\004data\030\004 \001(\014\"" +
"\'\n\027SendTransactionResponse\022\014\n\004hash\030\001 \001(\014" +
"2\315\004\n\021TransactionLedger\022R\n\rClientVersion\022" +
"\026.google.protobuf.Empty\032).bdchain.api.co" +
"mmon.ClientVersionResponse\022e\n\014CreateLedg" +
"er\022).bdchain.api.txledger.CreateLedgerRe" +
"quest\032*.bdchain.api.txledger.CreateLedge" +
"rResponse\022N\n\nGetLedgers\022\026.google.protobu" +
"f.Empty\032(.bdchain.api.txledger.GetLedger" +
"sResponse\022_\n\nBlockCount\022\'.bdchain.api.tx" +
"ledger.BlockCountRequest\032(.bdchain.api.t" +
"xledger.BlockCountResponse\022\\\n\tGetBlocks\022" +
"&.bdchain.api.txledger.GetBlocksRequest\032" +
"\'.bdchain.api.txledger.GetBlocksResponse" +
"\022n\n\017SendTransaction\022,.bdchain.api.txledg" +
"er.SendTransactionRequest\032-.bdchain.api." +
"txledger.SendTransactionResponseBT\n\031bdch" +
"ain.api.grpc.txledgerB\026TransactionLedger" +
"ProtoP\001Z\035bdchain/sdk/api/grpc/txledgerb\006" +
"proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.EmptyProto.getDescriptor(),
bdchain.api.grpc.common.CommonProto.getDescriptor(),
}, assigner);
internal_static_bdchain_api_txledger_Transaction_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_bdchain_api_txledger_Transaction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_txledger_Transaction_descriptor,
new java.lang.String[] { "BlockHash", "Index", "Hash", "Type", "From", "Nonce", "To", "Data", "V", "R", "S", });
internal_static_bdchain_api_txledger_Block_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_bdchain_api_txledger_Block_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_txledger_Block_descriptor,
new java.lang.String[] { "Index", "Hash", "ParentHashes", "Witnesses", "Timestamp", "Size", "TransactionsRoot", "Transactions", "TransactionHashes", });
internal_static_bdchain_api_txledger_CreateLedgerRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_bdchain_api_txledger_CreateLedgerRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_txledger_CreateLedgerRequest_descriptor,
new java.lang.String[] { "Name", });
internal_static_bdchain_api_txledger_CreateLedgerResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_bdchain_api_txledger_CreateLedgerResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_txledger_CreateLedgerResponse_descriptor,
new java.lang.String[] { "Ok", });
internal_static_bdchain_api_txledger_GetLedgersResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_bdchain_api_txledger_GetLedgersResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_txledger_GetLedgersResponse_descriptor,
new java.lang.String[] { "Ledgers", });
internal_static_bdchain_api_txledger_BlockCountRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_bdchain_api_txledger_BlockCountRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_txledger_BlockCountRequest_descriptor,
new java.lang.String[] { "Ledger", });
internal_static_bdchain_api_txledger_BlockCountResponse_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_bdchain_api_txledger_BlockCountResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_txledger_BlockCountResponse_descriptor,
new java.lang.String[] { "BlockCount", });
internal_static_bdchain_api_txledger_GetBlocksRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_bdchain_api_txledger_GetBlocksRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_txledger_GetBlocksRequest_descriptor,
new java.lang.String[] { "Ledger", "FromIndex", "Count", "FullTransaction", });
internal_static_bdchain_api_txledger_GetBlocksResponse_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_bdchain_api_txledger_GetBlocksResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_txledger_GetBlocksResponse_descriptor,
new java.lang.String[] { "Blocks", });
internal_static_bdchain_api_txledger_SendTransactionRequest_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_bdchain_api_txledger_SendTransactionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_txledger_SendTransactionRequest_descriptor,
new java.lang.String[] { "Ledger", "Transaction", });
internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_descriptor =
internal_static_bdchain_api_txledger_SendTransactionRequest_descriptor.getNestedTypes().get(0);
internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_descriptor,
new java.lang.String[] { "Type", "From", "To", "Data", });
internal_static_bdchain_api_txledger_SendTransactionResponse_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_bdchain_api_txledger_SendTransactionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bdchain_api_txledger_SendTransactionResponse_descriptor,
new java.lang.String[] { "Hash", });
com.google.protobuf.EmptyProto.getDescriptor();
bdchain.api.grpc.common.CommonProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -0,0 +1,116 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bdchain/api/tx_ledger.proto
package bdchain.api.grpc.txledger;
public interface TransactionOrBuilder extends
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.Transaction)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* 事务所在的区块的哈希当事务处于待确认状态时为`null`
* </pre>
*
* <code>bytes block_hash = 1;</code>
*/
com.google.protobuf.ByteString getBlockHash();
/**
* <pre>
* 事务在区块中的位置 index当事务处于待确认状态时为`null`
* </pre>
*
* <code>uint32 index = 2;</code>
*/
int getIndex();
/**
* <pre>
* 事务的哈希
* </pre>
*
* <code>bytes hash = 3;</code>
*/
com.google.protobuf.ByteString getHash();
/**
* <pre>
* 事务类型
* </pre>
*
* <code>.bdchain.api.common.TransactionType type = 4;</code>
*/
int getTypeValue();
/**
* <pre>
* 事务类型
* </pre>
*
* <code>.bdchain.api.common.TransactionType type = 4;</code>
*/
bdchain.api.grpc.common.TransactionType getType();
/**
* <pre>
* 发送账户地址
* </pre>
*
* <code>bytes from = 5;</code>
*/
com.google.protobuf.ByteString getFrom();
/**
* <pre>
* 这条事务之前发送者所发送的事务数量
* </pre>
*
* <code>uint64 nonce = 6;</code>
*/
long getNonce();
/**
* <pre>
* 接收账户地址或者调用的合约地址或者`null`如为合约创建
* </pre>
*
* <code>bytes to = 7;</code>
*/
com.google.protobuf.ByteString getTo();
/**
* <pre>
* 数据或合约代码
* </pre>
*
* <code>bytes data = 8;</code>
*/
com.google.protobuf.ByteString getData();
/**
* <pre>
* ECDSA recovery id
* </pre>
*
* <code>bytes v = 9;</code>
*/
com.google.protobuf.ByteString getV();
/**
* <pre>
* ECDSA signature r
* </pre>
*
* <code>bytes r = 10;</code>
*/
com.google.protobuf.ByteString getR();
/**
* <pre>
* ECDSA signature s
* </pre>
*
* <code>bytes s = 11;</code>
*/
com.google.protobuf.ByteString getS();
}

View File

@ -52,7 +52,7 @@ private static final long serialVersionUID = 0L;
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
@ -121,9 +121,8 @@ private static final long serialVersionUID = 0L;
}
com.google.protobuf.Empty other = (com.google.protobuf.Empty) obj;
boolean result = true;
result = result && unknownFields.equals(other.unknownFields);
return result;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
@ -308,35 +307,35 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
@ -381,7 +380,7 @@ private static final long serialVersionUID = 0L;
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
return super.setUnknownFields(unknownFields);
}
@java.lang.Override

@ -1 +1 @@
Subproject commit 07f1e05962d359da4edd9c931cc5d5a37664237d
Subproject commit d2792917e7ac2eabb02c14117544e40f99e278fb

View File

@ -1,8 +1,8 @@
package bdchain.api;
import bdchain.api.grpc.Block;
import bdchain.api.grpc.Transaction;
import bdchain.api.grpc.TransactionType;
import bdchain.api.grpc.acchain.Block;
import bdchain.api.grpc.acchain.Transaction;
import bdchain.api.grpc.common.TransactionType;
import com.google.protobuf.ByteString;
import io.grpc.Status;
import org.junit.jupiter.api.AfterAll;
@ -11,7 +11,9 @@ import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.stream.Collectors;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
@ -29,8 +31,15 @@ class AccountingChainClientTests {
ByteString.copyFrom(
Utils.hexStringToByteArray(
"babefacebabefacebabefacebabefacebabefacebabefacebabefacebabeface"));
private static final ByteString witness =
ByteString.copyFrom(Utils.hexStringToByteArray("1fee1bad1fee1bad1fee1bad1fee1bad1fee1bad"));
private static final String[] witnessStrs = {
"0404040404040404040404040404040404040404",
"1313131313131313131313131313131313131313",
"5252525252525252525252525252525252525252"
};
private static final List<ByteString> witnesses =
Arrays.stream(witnessStrs)
.map(s -> ByteString.copyFrom(Utils.hexStringToByteArray(s)))
.collect(Collectors.toList());
private static final long timestamp = 2018050400000L;
private static final long size = 20180504L;
private static final ByteString transactionsRoot =
@ -68,7 +77,7 @@ class AccountingChainClientTests {
.setNumber(blockNumber)
.setHash(blockHash)
.setParentHash(parentHash)
.setWitness(witness)
.addAllWitnesses(witnesses)
.setTimestamp(timestamp)
.setSize(size)
.setTransactionsRoot(transactionsRoot)
@ -94,7 +103,8 @@ class AccountingChainClientTests {
@BeforeAll
static void initAll() {
acClient = new AccountingChainClient("localhost", 10001);
acClient = new AccountingChainClient("47.92.69.234", 18080);
// acClient = new AccountingChainClient("localhost", 10001);
}
@Test
@ -107,7 +117,8 @@ class AccountingChainClientTests {
@Test
@DisplayName("BlockNumber#1")
void blockNumber1() throws InterruptedException, ExecutionException {
assertEquals(blockNumber, acClient.blockNumber(ledger).get().getBlockNumber());
System.out.println(acClient.blockNumber(ledger).get().getBlockNumber());
// assertEquals(blockNumber, acClient.blockNumber(ledger).get().getBlockNumber());
}
@Test
@ -122,23 +133,25 @@ class AccountingChainClientTests {
@Test
@DisplayName("GetBlockByNumber#1")
void getBlockByNumber1() throws ExecutionException, InterruptedException {
Block b = acClient.getBlockByNumber(ledger, blockNumber, true).get();
Block blockFull =
Block.newBuilder(block)
.addAllTransactions(
Arrays.asList(
Transaction.newBuilder(tx).setIndex(0).build(),
Transaction.newBuilder(tx)
.setIndex(1)
.setHash(txHash2)
.setType(TransactionType.MESSAGE)
.setNonce(2019L)
.setTo(to)
.clearData()
.build()))
.clearTransactionHashes()
.build();
assertEquals(blockFull, b);
// Block b = acClient.getBlockByNumber(ledger, blockNumber, true).get();
Block b = acClient.getBlockByNumber(ledger, 2595, false).get();
System.out.println(b.getNumber());
// Block blockFull =
// Block.newBuilder(block)
// .addAllTransactions(
// Arrays.asList(
// Transaction.newBuilder(tx).setIndex(0).build(),
// Transaction.newBuilder(tx)
// .setIndex(1)
// .setHash(txHash2)
// .setType(TransactionType.MESSAGE)
// .setNonce(2019L)
// .setTo(to)
// .clearData()
// .build()))
// .clearTransactionHashes()
// .build();
// assertEquals(blockFull, b);
}
@Test

View File

@ -1,7 +1,7 @@
package bdchain.api;
import bdchain.api.grpc.GetLedgersResponse;
import bdchain.api.grpc.TransactionType;
import bdchain.api.grpc.txledger.GetLedgersResponse;
import bdchain.api.grpc.common.TransactionType;
import io.grpc.Status;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;