Update
This commit is contained in:
parent
6460f8b1aa
commit
4fca4bcdfb
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,4 +1,4 @@
|
||||
[submodule "src/main/proto"]
|
||||
path = src/main/proto
|
||||
url = ssh://vcs@phabricator.internetapi.cn:2222/source/bdchain-grpc-api.git
|
||||
url = ssh://vcs@phabricator.internetapi.cn/source/bdledger-grpc-api.git
|
||||
branch = master
|
||||
|
19
build.gradle
19
build.gradle
@ -3,22 +3,22 @@ buildscript {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.8'
|
||||
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.11'
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'com.google.protobuf' version '0.8.8'
|
||||
id 'com.google.protobuf' version '0.8.11'
|
||||
}
|
||||
|
||||
group 'org.bdchain'
|
||||
group 'org.bdware'
|
||||
version '1.0-SNAPSHOT'
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
|
||||
def grpc_java_version = '1.20.0'
|
||||
def junit_version = '5.4.1'
|
||||
def grpc_java_version = '1.27.0'
|
||||
def junit_version = '5.6.0'
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.encoding = "UTF-8"
|
||||
@ -43,7 +43,7 @@ javadoc {
|
||||
|
||||
protobuf {
|
||||
protoc {
|
||||
artifact = "com.google.protobuf:protoc:3.7.1"
|
||||
artifact = "com.google.protobuf:protoc:3.11.3"
|
||||
}
|
||||
plugins {
|
||||
grpc {
|
||||
@ -68,6 +68,11 @@ dependencies {
|
||||
compile 'io.grpc:grpc-netty-shaded:' + grpc_java_version
|
||||
compile 'io.grpc:grpc-protobuf:' + grpc_java_version
|
||||
compile 'io.grpc:grpc-stub:' + grpc_java_version
|
||||
if (JavaVersion.current().isJava9Compatible()) {
|
||||
// Workaround for @javax.annotation.Generated
|
||||
// see: https://github.com/grpc/grpc-java/issues/3633
|
||||
compile 'javax.annotation:javax.annotation-api:1.3.2'
|
||||
}
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:' + junit_version
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-params:' + junit_version
|
||||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:' + junit_version
|
||||
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
6
gradle/wrapper/gradle-wrapper.properties
vendored
6
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
||||
#Tue Sep 11 16:37:15 CST 2018
|
||||
#Fri Feb 07 14:29:24 GMT+08:00 2020
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-all.zip
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8-all.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
51
gradlew
vendored
51
gradlew
vendored
@ -1,5 +1,21 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
#
|
||||
# Copyright 2015 the original author or authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
@ -28,7 +44,7 @@ APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS=""
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
@ -109,8 +125,8 @@ if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin ; then
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||
@ -138,19 +154,19 @@ if $cygwin ; then
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=$((i+1))
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
case $i in
|
||||
(0) set -- ;;
|
||||
(1) set -- "$args0" ;;
|
||||
(2) set -- "$args0" "$args1" ;;
|
||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
0) set -- ;;
|
||||
1) set -- "$args0" ;;
|
||||
2) set -- "$args0" "$args1" ;;
|
||||
3) set -- "$args0" "$args1" "$args2" ;;
|
||||
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
@ -159,14 +175,9 @@ save () {
|
||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||
echo " "
|
||||
}
|
||||
APP_ARGS=$(save "$@")
|
||||
APP_ARGS=`save "$@"`
|
||||
|
||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
||||
|
||||
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
|
||||
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
|
||||
cd "$(dirname "$0")"
|
||||
fi
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
|
18
gradlew.bat
vendored
18
gradlew.bat
vendored
@ -1,3 +1,19 @@
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS=
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
@ -1,2 +1,2 @@
|
||||
rootProject.name = 'bdchain-java-sdk'
|
||||
rootProject.name = 'BDLedger Java SDK'
|
||||
|
||||
|
@ -1,730 +0,0 @@
|
||||
package bdchain.api.grpc.acchain;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
|
||||
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
|
||||
import static io.grpc.stub.ClientCalls.futureUnaryCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
|
||||
|
||||
/**
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
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.acchain.AccountingChain";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<com.google.protobuf.Empty,
|
||||
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.common.ClientVersionResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<com.google.protobuf.Empty,
|
||||
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.common.ClientVersionResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"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.common.ClientVersionResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("ClientVersion"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getClientVersionMethod;
|
||||
}
|
||||
|
||||
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.acchain.BlockNumberRequest.class,
|
||||
responseType = bdchain.api.grpc.acchain.BlockNumberResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
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.acchain.BlockNumberRequest, bdchain.api.grpc.acchain.BlockNumberResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"bdchain.api.acchain.AccountingChain", "BlockNumber"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.acchain.BlockNumberRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.acchain.BlockNumberResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("BlockNumber"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getBlockNumberMethod;
|
||||
}
|
||||
|
||||
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.acchain.GetBlockByNumberRequest.class,
|
||||
responseType = bdchain.api.grpc.acchain.Block.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
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.acchain.GetBlockByNumberRequest, bdchain.api.grpc.acchain.Block>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"bdchain.api.acchain.AccountingChain", "GetBlockByNumber"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.acchain.GetBlockByNumberRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.acchain.Block.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetBlockByNumber"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetBlockByNumberMethod;
|
||||
}
|
||||
|
||||
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.acchain.GetBlockByHashRequest.class,
|
||||
responseType = bdchain.api.grpc.acchain.Block.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
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.acchain.GetBlockByHashRequest, bdchain.api.grpc.acchain.Block>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"bdchain.api.acchain.AccountingChain", "GetBlockByHash"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.acchain.GetBlockByHashRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.acchain.Block.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetBlockByHash"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetBlockByHashMethod;
|
||||
}
|
||||
|
||||
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.acchain.GetTransactionByHashRequest.class,
|
||||
responseType = bdchain.api.grpc.acchain.Transaction.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
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.acchain.GetTransactionByHashRequest, bdchain.api.grpc.acchain.Transaction>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"bdchain.api.acchain.AccountingChain", "GetTransactionByHash"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.acchain.GetTransactionByHashRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.acchain.Transaction.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetTransactionByHash"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetTransactionByHashMethod;
|
||||
}
|
||||
|
||||
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.acchain.GetTransactionByBlockNumberAndIndexRequest.class,
|
||||
responseType = bdchain.api.grpc.acchain.Transaction.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
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.acchain.GetTransactionByBlockNumberAndIndexRequest, bdchain.api.grpc.acchain.Transaction>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"bdchain.api.acchain.AccountingChain", "GetTransactionByBlockNumberAndIndex"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.acchain.Transaction.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetTransactionByBlockNumberAndIndex"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetTransactionByBlockNumberAndIndexMethod;
|
||||
}
|
||||
|
||||
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.acchain.GetTransactionByBlockHashAndIndexRequest.class,
|
||||
responseType = bdchain.api.grpc.acchain.Transaction.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
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.acchain.GetTransactionByBlockHashAndIndexRequest, bdchain.api.grpc.acchain.Transaction>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"bdchain.api.acchain.AccountingChain", "GetTransactionByBlockHashAndIndex"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.acchain.Transaction.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetTransactionByBlockHashAndIndex"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetTransactionByBlockHashAndIndexMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static AccountingChainStub newStub(io.grpc.Channel channel) {
|
||||
return new AccountingChainStub(channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static AccountingChainBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
return new AccountingChainBlockingStub(channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static AccountingChainFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
return new AccountingChainFutureStub(channel);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static abstract class AccountingChainImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
*/
|
||||
public void clientVersion(com.google.protobuf.Empty request,
|
||||
io.grpc.stub.StreamObserver<bdchain.api.grpc.common.ClientVersionResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getClientVersionMethod(), 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.acchain.GetBlockByNumberRequest request,
|
||||
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Block> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getGetBlockByNumberMethod(), 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.acchain.GetTransactionByHashRequest request,
|
||||
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Transaction> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getGetTransactionByHashMethod(), 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.acchain.GetTransactionByBlockHashAndIndexRequest request,
|
||||
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Transaction> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getGetTransactionByBlockHashAndIndexMethod(), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getClientVersionMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
com.google.protobuf.Empty,
|
||||
bdchain.api.grpc.common.ClientVersionResponse>(
|
||||
this, METHODID_CLIENT_VERSION)))
|
||||
.addMethod(
|
||||
getBlockNumberMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdchain.api.grpc.acchain.BlockNumberRequest,
|
||||
bdchain.api.grpc.acchain.BlockNumberResponse>(
|
||||
this, METHODID_BLOCK_NUMBER)))
|
||||
.addMethod(
|
||||
getGetBlockByNumberMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdchain.api.grpc.acchain.GetBlockByNumberRequest,
|
||||
bdchain.api.grpc.acchain.Block>(
|
||||
this, METHODID_GET_BLOCK_BY_NUMBER)))
|
||||
.addMethod(
|
||||
getGetBlockByHashMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdchain.api.grpc.acchain.GetBlockByHashRequest,
|
||||
bdchain.api.grpc.acchain.Block>(
|
||||
this, METHODID_GET_BLOCK_BY_HASH)))
|
||||
.addMethod(
|
||||
getGetTransactionByHashMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdchain.api.grpc.acchain.GetTransactionByHashRequest,
|
||||
bdchain.api.grpc.acchain.Transaction>(
|
||||
this, METHODID_GET_TRANSACTION_BY_HASH)))
|
||||
.addMethod(
|
||||
getGetTransactionByBlockNumberAndIndexMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
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.acchain.GetTransactionByBlockHashAndIndexRequest,
|
||||
bdchain.api.grpc.acchain.Transaction>(
|
||||
this, METHODID_GET_TRANSACTION_BY_BLOCK_HASH_AND_INDEX)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class AccountingChainStub extends io.grpc.stub.AbstractStub<AccountingChainStub> {
|
||||
private AccountingChainStub(io.grpc.Channel channel) {
|
||||
super(channel);
|
||||
}
|
||||
|
||||
private AccountingChainStub(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected AccountingChainStub build(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
return new AccountingChainStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void clientVersion(com.google.protobuf.Empty request,
|
||||
io.grpc.stub.StreamObserver<bdchain.api.grpc.common.ClientVersionResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getClientVersionMethod(), getCallOptions()), request, 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.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.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.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.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.acchain.GetTransactionByBlockHashAndIndexRequest request,
|
||||
io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Transaction> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getGetTransactionByBlockHashAndIndexMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class AccountingChainBlockingStub extends io.grpc.stub.AbstractStub<AccountingChainBlockingStub> {
|
||||
private AccountingChainBlockingStub(io.grpc.Channel channel) {
|
||||
super(channel);
|
||||
}
|
||||
|
||||
private AccountingChainBlockingStub(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected AccountingChainBlockingStub build(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
return new AccountingChainBlockingStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdchain.api.grpc.common.ClientVersionResponse clientVersion(com.google.protobuf.Empty request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getClientVersionMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdchain.api.grpc.acchain.BlockNumberResponse blockNumber(bdchain.api.grpc.acchain.BlockNumberRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getBlockNumberMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdchain.api.grpc.acchain.Block getBlockByNumber(bdchain.api.grpc.acchain.GetBlockByNumberRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetBlockByNumberMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdchain.api.grpc.acchain.Block getBlockByHash(bdchain.api.grpc.acchain.GetBlockByHashRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetBlockByHashMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdchain.api.grpc.acchain.Transaction getTransactionByHash(bdchain.api.grpc.acchain.GetTransactionByHashRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetTransactionByHashMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdchain.api.grpc.acchain.Transaction getTransactionByBlockNumberAndIndex(bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetTransactionByBlockNumberAndIndexMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdchain.api.grpc.acchain.Transaction getTransactionByBlockHashAndIndex(bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetTransactionByBlockHashAndIndexMethod(), getCallOptions(), request);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class AccountingChainFutureStub extends io.grpc.stub.AbstractStub<AccountingChainFutureStub> {
|
||||
private AccountingChainFutureStub(io.grpc.Channel channel) {
|
||||
super(channel);
|
||||
}
|
||||
|
||||
private AccountingChainFutureStub(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected AccountingChainFutureStub build(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
return new AccountingChainFutureStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
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.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.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.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.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.acchain.Transaction> getTransactionByBlockHashAndIndex(
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getGetTransactionByBlockHashAndIndexMethod(), getCallOptions()), request);
|
||||
}
|
||||
}
|
||||
|
||||
private static final int METHODID_CLIENT_VERSION = 0;
|
||||
private static final int METHODID_BLOCK_NUMBER = 1;
|
||||
private static final int METHODID_GET_BLOCK_BY_NUMBER = 2;
|
||||
private static final int METHODID_GET_BLOCK_BY_HASH = 3;
|
||||
private static final int METHODID_GET_TRANSACTION_BY_HASH = 4;
|
||||
private static final int METHODID_GET_TRANSACTION_BY_BLOCK_NUMBER_AND_INDEX = 5;
|
||||
private static final int METHODID_GET_TRANSACTION_BY_BLOCK_HASH_AND_INDEX = 6;
|
||||
|
||||
private static final class MethodHandlers<Req, Resp> implements
|
||||
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final AccountingChainImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(AccountingChainImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_CLIENT_VERSION:
|
||||
serviceImpl.clientVersion((com.google.protobuf.Empty) request,
|
||||
(io.grpc.stub.StreamObserver<bdchain.api.grpc.common.ClientVersionResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_BLOCK_NUMBER:
|
||||
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.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.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.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.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.acchain.GetTransactionByBlockHashAndIndexRequest) request,
|
||||
(io.grpc.stub.StreamObserver<bdchain.api.grpc.acchain.Transaction>) responseObserver);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class AccountingChainBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
AccountingChainBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("AccountingChain");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class AccountingChainFileDescriptorSupplier
|
||||
extends AccountingChainBaseDescriptorSupplier {
|
||||
AccountingChainFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class AccountingChainMethodDescriptorSupplier
|
||||
extends AccountingChainBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
AccountingChainMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (AccountingChainGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new AccountingChainFileDescriptorSupplier())
|
||||
.addMethod(getClientVersionMethod())
|
||||
.addMethod(getBlockNumberMethod())
|
||||
.addMethod(getGetBlockByNumberMethod())
|
||||
.addMethod(getGetBlockByHashMethod())
|
||||
.addMethod(getGetTransactionByHashMethod())
|
||||
.addMethod(getGetTransactionByBlockNumberAndIndexMethod())
|
||||
.addMethod(getGetTransactionByBlockHashAndIndexMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
@ -1,193 +0,0 @@
|
||||
// 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)
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,540 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.acchain.BlockNumberRequest}
|
||||
*/
|
||||
public final class BlockNumberRequest extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.BlockNumberRequest)
|
||||
BlockNumberRequestOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use BlockNumberRequest.newBuilder() to construct.
|
||||
private BlockNumberRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private BlockNumberRequest() {
|
||||
ledger_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private BlockNumberRequest(
|
||||
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.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.BlockNumberRequest.class, bdchain.api.grpc.acchain.BlockNumberRequest.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.acchain.BlockNumberRequest)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.acchain.BlockNumberRequest other = (bdchain.api.grpc.acchain.BlockNumberRequest) 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.acchain.BlockNumberRequest parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
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.acchain.BlockNumberRequest parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
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.acchain.BlockNumberRequest parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
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.acchain.BlockNumberRequest parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
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.acchain.BlockNumberRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
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.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.acchain.BlockNumberRequest 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.acchain.BlockNumberRequest 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.acchain.BlockNumberRequest}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@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.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.BlockNumberRequest.class, bdchain.api.grpc.acchain.BlockNumberRequest.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.acchain.BlockNumberRequest.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.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.BlockNumberRequest getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.acchain.BlockNumberRequest.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.BlockNumberRequest build() {
|
||||
bdchain.api.grpc.acchain.BlockNumberRequest result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
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;
|
||||
}
|
||||
|
||||
@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.acchain.BlockNumberRequest) {
|
||||
return mergeFrom((bdchain.api.grpc.acchain.BlockNumberRequest)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
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();
|
||||
}
|
||||
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.acchain.BlockNumberRequest parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.acchain.BlockNumberRequest) 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.acchain.BlockNumberRequest)
|
||||
}
|
||||
|
||||
// @@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.acchain.BlockNumberRequest();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.acchain.BlockNumberRequest getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<BlockNumberRequest>
|
||||
PARSER = new com.google.protobuf.AbstractParser<BlockNumberRequest>() {
|
||||
@java.lang.Override
|
||||
public BlockNumberRequest parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new BlockNumberRequest(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<BlockNumberRequest> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<BlockNumberRequest> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.BlockNumberRequest getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,19 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
|
||||
public interface BlockNumberRequestOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.BlockNumberRequest)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
*/
|
||||
java.lang.String getLedger();
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getLedgerBytes();
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
|
||||
public interface BlockNumberResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.BlockNumberResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint64 block_number = 1;</code>
|
||||
*/
|
||||
long getBlockNumber();
|
||||
}
|
@ -1,157 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
|
||||
public interface BlockOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.Block)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 区块号,当区块处于待确认状态时为`null`
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 number = 1;</code>
|
||||
*/
|
||||
long getNumber();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 区块的哈希,当区块处于待确认状态时为`null`
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes hash = 2;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString getHash();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 父区块的哈希
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes parent_hash = 3;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString getParentHash();
|
||||
|
||||
/**
|
||||
* <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.acchain.Transaction transactions = 8;</code>
|
||||
*/
|
||||
java.util.List<bdchain.api.grpc.acchain.Transaction>
|
||||
getTransactionsList();
|
||||
/**
|
||||
* <pre>
|
||||
* 事务对象的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdchain.api.acchain.Transaction transactions = 8;</code>
|
||||
*/
|
||||
bdchain.api.grpc.acchain.Transaction getTransactions(int index);
|
||||
/**
|
||||
* <pre>
|
||||
* 事务对象的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdchain.api.acchain.Transaction transactions = 8;</code>
|
||||
*/
|
||||
int getTransactionsCount();
|
||||
/**
|
||||
* <pre>
|
||||
* 事务对象的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdchain.api.acchain.Transaction transactions = 8;</code>
|
||||
*/
|
||||
java.util.List<? extends bdchain.api.grpc.acchain.TransactionOrBuilder>
|
||||
getTransactionsOrBuilderList();
|
||||
/**
|
||||
* <pre>
|
||||
* 事务对象的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdchain.api.acchain.Transaction transactions = 8;</code>
|
||||
*/
|
||||
bdchain.api.grpc.acchain.TransactionOrBuilder getTransactionsOrBuilder(
|
||||
int index);
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 20字节的交易哈希的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated bytes transaction_hashes = 9;</code>
|
||||
*/
|
||||
java.util.List<com.google.protobuf.ByteString> getTransactionHashesList();
|
||||
/**
|
||||
* <pre>
|
||||
* 20字节的交易哈希的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated bytes transaction_hashes = 9;</code>
|
||||
*/
|
||||
int getTransactionHashesCount();
|
||||
/**
|
||||
* <pre>
|
||||
* 20字节的交易哈希的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated bytes transaction_hashes = 9;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString getTransactionHashes(int index);
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
|
||||
public interface GetBlockByNumberRequestOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.GetBlockByNumberRequest)
|
||||
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 number = 2;</code>
|
||||
*/
|
||||
long getNumber();
|
||||
|
||||
/**
|
||||
* <code>bool full_transaction = 3;</code>
|
||||
*/
|
||||
boolean getFullTransaction();
|
||||
}
|
@ -1,655 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.acchain.GetTransactionByBlockNumberAndIndexRequest}
|
||||
*/
|
||||
public final class GetTransactionByBlockNumberAndIndexRequest extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.GetTransactionByBlockNumberAndIndexRequest)
|
||||
GetTransactionByBlockNumberAndIndexRequestOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GetTransactionByBlockNumberAndIndexRequest.newBuilder() to construct.
|
||||
private GetTransactionByBlockNumberAndIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private GetTransactionByBlockNumberAndIndexRequest() {
|
||||
ledger_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private GetTransactionByBlockNumberAndIndexRequest(
|
||||
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: {
|
||||
|
||||
blockNumber_ = input.readUInt64();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
|
||||
index_ = input.readUInt32();
|
||||
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.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.class, bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.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 BLOCK_NUMBER_FIELD_NUMBER = 2;
|
||||
private long blockNumber_;
|
||||
/**
|
||||
* <code>uint64 block_number = 2;</code>
|
||||
*/
|
||||
public long getBlockNumber() {
|
||||
return blockNumber_;
|
||||
}
|
||||
|
||||
public static final int INDEX_FIELD_NUMBER = 3;
|
||||
private int index_;
|
||||
/**
|
||||
* <code>uint32 index = 3;</code>
|
||||
*/
|
||||
public int getIndex() {
|
||||
return 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 {
|
||||
if (!getLedgerBytes().isEmpty()) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ledger_);
|
||||
}
|
||||
if (blockNumber_ != 0L) {
|
||||
output.writeUInt64(2, blockNumber_);
|
||||
}
|
||||
if (index_ != 0) {
|
||||
output.writeUInt32(3, index_);
|
||||
}
|
||||
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 (blockNumber_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(2, blockNumber_);
|
||||
}
|
||||
if (index_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(3, index_);
|
||||
}
|
||||
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.acchain.GetTransactionByBlockNumberAndIndexRequest)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest other = (bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest) obj;
|
||||
|
||||
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
|
||||
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) + BLOCK_NUMBER_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getBlockNumber());
|
||||
hash = (37 * hash) + INDEX_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getIndex();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
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.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.acchain.GetTransactionByBlockNumberAndIndexRequest parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
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.acchain.GetTransactionByBlockNumberAndIndexRequest parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
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.acchain.GetTransactionByBlockNumberAndIndexRequest parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
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.acchain.GetTransactionByBlockNumberAndIndexRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
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.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.acchain.GetTransactionByBlockNumberAndIndexRequest 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.acchain.GetTransactionByBlockNumberAndIndexRequest 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.acchain.GetTransactionByBlockNumberAndIndexRequest}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@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.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.class, bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.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_ = "";
|
||||
|
||||
blockNumber_ = 0L;
|
||||
|
||||
index_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockNumberAndIndexRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest build() {
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
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_;
|
||||
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.acchain.GetTransactionByBlockNumberAndIndexRequest) {
|
||||
return mergeFrom((bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
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();
|
||||
}
|
||||
if (other.getBlockNumber() != 0L) {
|
||||
setBlockNumber(other.getBlockNumber());
|
||||
}
|
||||
if (other.getIndex() != 0) {
|
||||
setIndex(other.getIndex());
|
||||
}
|
||||
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.acchain.GetTransactionByBlockNumberAndIndexRequest parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest) 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 blockNumber_ ;
|
||||
/**
|
||||
* <code>uint64 block_number = 2;</code>
|
||||
*/
|
||||
public long getBlockNumber() {
|
||||
return blockNumber_;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 block_number = 2;</code>
|
||||
*/
|
||||
public Builder setBlockNumber(long value) {
|
||||
|
||||
blockNumber_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 block_number = 2;</code>
|
||||
*/
|
||||
public Builder clearBlockNumber() {
|
||||
|
||||
blockNumber_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int index_ ;
|
||||
/**
|
||||
* <code>uint32 index = 3;</code>
|
||||
*/
|
||||
public int getIndex() {
|
||||
return index_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 index = 3;</code>
|
||||
*/
|
||||
public Builder setIndex(int value) {
|
||||
|
||||
index_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 index = 3;</code>
|
||||
*/
|
||||
public Builder clearIndex() {
|
||||
|
||||
index_ = 0;
|
||||
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.acchain.GetTransactionByBlockNumberAndIndexRequest)
|
||||
}
|
||||
|
||||
// @@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.acchain.GetTransactionByBlockNumberAndIndexRequest();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<GetTransactionByBlockNumberAndIndexRequest>
|
||||
PARSER = new com.google.protobuf.AbstractParser<GetTransactionByBlockNumberAndIndexRequest>() {
|
||||
@java.lang.Override
|
||||
public GetTransactionByBlockNumberAndIndexRequest parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new GetTransactionByBlockNumberAndIndexRequest(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<GetTransactionByBlockNumberAndIndexRequest> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<GetTransactionByBlockNumberAndIndexRequest> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetTransactionByBlockNumberAndIndexRequest getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,29 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
|
||||
public interface GetTransactionByBlockNumberAndIndexRequestOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.GetTransactionByBlockNumberAndIndexRequest)
|
||||
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 block_number = 2;</code>
|
||||
*/
|
||||
long getBlockNumber();
|
||||
|
||||
/**
|
||||
* <code>uint32 index = 3;</code>
|
||||
*/
|
||||
int getIndex();
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,125 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
|
||||
public interface TransactionOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.Transaction)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 事务所在的区块的区块号,当事务处于待确认状态时为`null`
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 block_number = 1;</code>
|
||||
*/
|
||||
long getBlockNumber();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 事务所在的区块的哈希,当事务处于待确认状态时为`null`
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes block_hash = 2;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString getBlockHash();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 事务在区块中的位置index,当事务处于待确认状态时为`null`
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 index = 3;</code>
|
||||
*/
|
||||
int getIndex();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 事务的哈希
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes hash = 4;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString getHash();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 事务类型
|
||||
* </pre>
|
||||
*
|
||||
* <code>.bdchain.api.common.TransactionType type = 5;</code>
|
||||
*/
|
||||
int getTypeValue();
|
||||
/**
|
||||
* <pre>
|
||||
* 事务类型
|
||||
* </pre>
|
||||
*
|
||||
* <code>.bdchain.api.common.TransactionType type = 5;</code>
|
||||
*/
|
||||
bdchain.api.grpc.common.TransactionType getType();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 发送账户地址
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes from = 6;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString getFrom();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 这条事务之前发送者所发送的事务数量
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 nonce = 7;</code>
|
||||
*/
|
||||
long getNonce();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 接收账户地址,或者调用的合约地址,或者`null`如为合约创建
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes to = 8;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString getTo();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 数据或合约代码
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes data = 9;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString getData();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* ECDSA recovery id
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes v = 10;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString getV();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* ECDSA signature r
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes r = 11;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString getR();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* ECDSA signature s
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes s = 12;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString getS();
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/common.proto
|
||||
|
||||
package bdchain.api.grpc.common;
|
||||
|
||||
public final class CommonProto {
|
||||
private CommonProto() {}
|
||||
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_common_ClientVersionResponse_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdchain_api_common_ClientVersionResponse_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\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() {
|
||||
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[] {
|
||||
}, assigner);
|
||||
internal_static_bdchain_api_common_ClientVersionResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_bdchain_api_common_ClientVersionResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdchain_api_common_ClientVersionResponse_descriptor,
|
||||
new java.lang.String[] { "Version", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/error_details.proto
|
||||
|
||||
package bdchain.api.grpc.common;
|
||||
|
||||
public final class ErrorDetailsProto {
|
||||
private ErrorDetailsProto() {}
|
||||
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_common_InvalidArgument_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdchain_api_common_InvalidArgument_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdchain_api_common_InvalidArgument_FieldViolation_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdchain_api_common_InvalidArgument_FieldViolation_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\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() {
|
||||
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[] {
|
||||
}, assigner);
|
||||
internal_static_bdchain_api_common_InvalidArgument_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_bdchain_api_common_InvalidArgument_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdchain_api_common_InvalidArgument_descriptor,
|
||||
new java.lang.String[] { "FieldViolations", });
|
||||
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_common_InvalidArgument_FieldViolation_descriptor,
|
||||
new java.lang.String[] { "Field", "Description", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
// 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);
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
// 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();
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
// 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();
|
||||
}
|
@ -1,729 +0,0 @@
|
||||
// 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,38 +0,0 @@
|
||||
// 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();
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
// 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);
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
// 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();
|
||||
}
|
@ -1,655 +0,0 @@
|
||||
package bdchain.api.grpc.txledger;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
|
||||
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
|
||||
import static io.grpc.stub.ClientCalls.futureUnaryCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
|
||||
|
||||
/**
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
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.txledger.TransactionLedger";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<com.google.protobuf.Empty,
|
||||
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.common.ClientVersionResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<com.google.protobuf.Empty,
|
||||
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.common.ClientVersionResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"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.common.ClientVersionResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new TransactionLedgerMethodDescriptorSupplier("ClientVersion"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getClientVersionMethod;
|
||||
}
|
||||
|
||||
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.txledger.CreateLedgerRequest.class,
|
||||
responseType = bdchain.api.grpc.txledger.CreateLedgerResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
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.txledger.CreateLedgerRequest, bdchain.api.grpc.txledger.CreateLedgerResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"bdchain.api.txledger.TransactionLedger", "CreateLedger"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.txledger.CreateLedgerRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.txledger.CreateLedgerResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new TransactionLedgerMethodDescriptorSupplier("CreateLedger"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getCreateLedgerMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<com.google.protobuf.Empty,
|
||||
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.txledger.GetLedgersResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<com.google.protobuf.Empty,
|
||||
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.txledger.GetLedgersResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"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.txledger.GetLedgersResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new TransactionLedgerMethodDescriptorSupplier("GetLedgers"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetLedgersMethod;
|
||||
}
|
||||
|
||||
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.txledger.SendTransactionRequest.class,
|
||||
responseType = bdchain.api.grpc.txledger.SendTransactionResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
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.txledger.SendTransactionRequest, bdchain.api.grpc.txledger.SendTransactionResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"bdchain.api.txledger.TransactionLedger", "SendTransaction"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.txledger.SendTransactionResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new TransactionLedgerMethodDescriptorSupplier("SendTransaction"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getSendTransactionMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static TransactionLedgerStub newStub(io.grpc.Channel channel) {
|
||||
return new TransactionLedgerStub(channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static TransactionLedgerBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
return new TransactionLedgerBlockingStub(channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static TransactionLedgerFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
return new TransactionLedgerFutureStub(channel);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static abstract class TransactionLedgerImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
*/
|
||||
public void clientVersion(com.google.protobuf.Empty request,
|
||||
io.grpc.stub.StreamObserver<bdchain.api.grpc.common.ClientVersionResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getClientVersionMethod(), 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.txledger.GetLedgersResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getGetLedgersMethod(), 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);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getClientVersionMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
com.google.protobuf.Empty,
|
||||
bdchain.api.grpc.common.ClientVersionResponse>(
|
||||
this, METHODID_CLIENT_VERSION)))
|
||||
.addMethod(
|
||||
getCreateLedgerMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
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.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.txledger.SendTransactionRequest,
|
||||
bdchain.api.grpc.txledger.SendTransactionResponse>(
|
||||
this, METHODID_SEND_TRANSACTION)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class TransactionLedgerStub extends io.grpc.stub.AbstractStub<TransactionLedgerStub> {
|
||||
private TransactionLedgerStub(io.grpc.Channel channel) {
|
||||
super(channel);
|
||||
}
|
||||
|
||||
private TransactionLedgerStub(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected TransactionLedgerStub build(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
return new TransactionLedgerStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void clientVersion(com.google.protobuf.Empty request,
|
||||
io.grpc.stub.StreamObserver<bdchain.api.grpc.common.ClientVersionResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getClientVersionMethod(), getCallOptions()), request, 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);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getLedgers(com.google.protobuf.Empty request,
|
||||
io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.GetLedgersResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getGetLedgersMethod(), getCallOptions()), request, 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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class TransactionLedgerBlockingStub extends io.grpc.stub.AbstractStub<TransactionLedgerBlockingStub> {
|
||||
private TransactionLedgerBlockingStub(io.grpc.Channel channel) {
|
||||
super(channel);
|
||||
}
|
||||
|
||||
private TransactionLedgerBlockingStub(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected TransactionLedgerBlockingStub build(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
return new TransactionLedgerBlockingStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdchain.api.grpc.common.ClientVersionResponse clientVersion(com.google.protobuf.Empty request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getClientVersionMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.CreateLedgerResponse createLedger(bdchain.api.grpc.txledger.CreateLedgerRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getCreateLedgerMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.GetLedgersResponse getLedgers(com.google.protobuf.Empty request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetLedgersMethod(), getCallOptions(), 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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class TransactionLedgerFutureStub extends io.grpc.stub.AbstractStub<TransactionLedgerFutureStub> {
|
||||
private TransactionLedgerFutureStub(io.grpc.Channel channel) {
|
||||
super(channel);
|
||||
}
|
||||
|
||||
private TransactionLedgerFutureStub(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected TransactionLedgerFutureStub build(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
return new TransactionLedgerFutureStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
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.txledger.GetLedgersResponse> getLedgers(
|
||||
com.google.protobuf.Empty request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getGetLedgersMethod(), getCallOptions()), 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);
|
||||
}
|
||||
}
|
||||
|
||||
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_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>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final TransactionLedgerImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(TransactionLedgerImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_CLIENT_VERSION:
|
||||
serviceImpl.clientVersion((com.google.protobuf.Empty) request,
|
||||
(io.grpc.stub.StreamObserver<bdchain.api.grpc.common.ClientVersionResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_CREATE_LEDGER:
|
||||
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.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.txledger.SendTransactionRequest) request,
|
||||
(io.grpc.stub.StreamObserver<bdchain.api.grpc.txledger.SendTransactionResponse>) responseObserver);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class TransactionLedgerBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
TransactionLedgerBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("TransactionLedger");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class TransactionLedgerFileDescriptorSupplier
|
||||
extends TransactionLedgerBaseDescriptorSupplier {
|
||||
TransactionLedgerFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class TransactionLedgerMethodDescriptorSupplier
|
||||
extends TransactionLedgerBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
TransactionLedgerMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (TransactionLedgerGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new TransactionLedgerFileDescriptorSupplier())
|
||||
.addMethod(getClientVersionMethod())
|
||||
.addMethod(getCreateLedgerMethod())
|
||||
.addMethod(getGetLedgersMethod())
|
||||
.addMethod(getBlockCountMethod())
|
||||
.addMethod(getGetBlocksMethod())
|
||||
.addMethod(getSendTransactionMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
@ -1,225 +0,0 @@
|
||||
// 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)
|
||||
}
|
@ -1,8 +1,6 @@
|
||||
package bdchain.api;
|
||||
package bdledger.api;
|
||||
|
||||
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;
|
@ -1,11 +1,8 @@
|
||||
package bdchain.api;
|
||||
package bdledger.api;
|
||||
|
||||
import bdchain.api.grpc.*;
|
||||
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;
|
@ -1,4 +1,4 @@
|
||||
package bdchain.api;
|
||||
package bdledger.api;
|
||||
|
||||
public class Utils {
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,10 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/common.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.common;
|
||||
|
||||
public interface BlockOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.Block)
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.Block)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
@ -13,6 +13,7 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 index = 1;</code>
|
||||
* @return The index.
|
||||
*/
|
||||
long getIndex();
|
||||
|
||||
@ -22,6 +23,7 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes hash = 2;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
com.google.protobuf.ByteString getHash();
|
||||
|
||||
@ -31,6 +33,7 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated bytes parent_hashes = 3;</code>
|
||||
* @return A list containing the parentHashes.
|
||||
*/
|
||||
java.util.List<com.google.protobuf.ByteString> getParentHashesList();
|
||||
/**
|
||||
@ -39,6 +42,7 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated bytes parent_hashes = 3;</code>
|
||||
* @return The count of parentHashes.
|
||||
*/
|
||||
int getParentHashesCount();
|
||||
/**
|
||||
@ -47,6 +51,8 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated bytes parent_hashes = 3;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The parentHashes at the given index.
|
||||
*/
|
||||
com.google.protobuf.ByteString getParentHashes(int index);
|
||||
|
||||
@ -56,6 +62,7 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated bytes witnesses = 4;</code>
|
||||
* @return A list containing the witnesses.
|
||||
*/
|
||||
java.util.List<com.google.protobuf.ByteString> getWitnessesList();
|
||||
/**
|
||||
@ -64,6 +71,7 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated bytes witnesses = 4;</code>
|
||||
* @return The count of witnesses.
|
||||
*/
|
||||
int getWitnessesCount();
|
||||
/**
|
||||
@ -72,6 +80,8 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated bytes witnesses = 4;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The witnesses at the given index.
|
||||
*/
|
||||
com.google.protobuf.ByteString getWitnesses(int index);
|
||||
|
||||
@ -81,6 +91,7 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>int64 timestamp = 5;</code>
|
||||
* @return The timestamp.
|
||||
*/
|
||||
long getTimestamp();
|
||||
|
||||
@ -90,6 +101,7 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 size = 6;</code>
|
||||
* @return The size.
|
||||
*/
|
||||
long getSize();
|
||||
|
||||
@ -99,6 +111,7 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes transactions_root = 7;</code>
|
||||
* @return The transactionsRoot.
|
||||
*/
|
||||
com.google.protobuf.ByteString getTransactionsRoot();
|
||||
|
||||
@ -107,24 +120,24 @@ public interface BlockOrBuilder extends
|
||||
* 事务对象的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 8;</code>
|
||||
*/
|
||||
java.util.List<bdchain.api.grpc.txledger.Transaction>
|
||||
java.util.List<bdledger.api.grpc.common.Transaction>
|
||||
getTransactionsList();
|
||||
/**
|
||||
* <pre>
|
||||
* 事务对象的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 8;</code>
|
||||
*/
|
||||
bdchain.api.grpc.txledger.Transaction getTransactions(int index);
|
||||
bdledger.api.grpc.common.Transaction getTransactions(int index);
|
||||
/**
|
||||
* <pre>
|
||||
* 事务对象的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 8;</code>
|
||||
*/
|
||||
int getTransactionsCount();
|
||||
/**
|
||||
@ -132,18 +145,18 @@ public interface BlockOrBuilder extends
|
||||
* 事务对象的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 8;</code>
|
||||
*/
|
||||
java.util.List<? extends bdchain.api.grpc.txledger.TransactionOrBuilder>
|
||||
java.util.List<? extends bdledger.api.grpc.common.TransactionOrBuilder>
|
||||
getTransactionsOrBuilderList();
|
||||
/**
|
||||
* <pre>
|
||||
* 事务对象的数组,或为空
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdchain.api.txledger.Transaction transactions = 8;</code>
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 8;</code>
|
||||
*/
|
||||
bdchain.api.grpc.txledger.TransactionOrBuilder getTransactionsOrBuilder(
|
||||
bdledger.api.grpc.common.TransactionOrBuilder getTransactionsOrBuilder(
|
||||
int index);
|
||||
|
||||
/**
|
||||
@ -152,6 +165,7 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated bytes transaction_hashes = 9;</code>
|
||||
* @return A list containing the transactionHashes.
|
||||
*/
|
||||
java.util.List<com.google.protobuf.ByteString> getTransactionHashesList();
|
||||
/**
|
||||
@ -160,6 +174,7 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated bytes transaction_hashes = 9;</code>
|
||||
* @return The count of transactionHashes.
|
||||
*/
|
||||
int getTransactionHashesCount();
|
||||
/**
|
||||
@ -168,6 +183,8 @@ public interface BlockOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated bytes transaction_hashes = 9;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The transactionHashes at the given index.
|
||||
*/
|
||||
com.google.protobuf.ByteString getTransactionHashes(int index);
|
||||
}
|
73
src/main/java/bdledger/api/grpc/common/CommonProto.java
Normal file
73
src/main/java/bdledger/api/grpc/common/CommonProto.java
Normal file
@ -0,0 +1,73 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/common.proto
|
||||
|
||||
package bdledger.api.grpc.common;
|
||||
|
||||
public final class CommonProto {
|
||||
private CommonProto() {}
|
||||
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_bdledger_api_Transaction_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_Transaction_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_Block_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_Block_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\031bdledger/api/common.proto\022\014bdledger.ap" +
|
||||
"i\"\303\001\n\013Transaction\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\022+\n\004type\030\004 \001(\016" +
|
||||
"2\035.bdledger.api.TransactionType\022\014\n\004from\030" +
|
||||
"\005 \001(\014\022\r\n\005nonce\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\"" +
|
||||
"\327\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\ttimestamp\030\005 \001(\003\022\014\n\004size\030\006 \001(\004\022\031\n\021tra" +
|
||||
"nsactions_root\030\007 \001(\014\022/\n\014transactions\030\010 \003" +
|
||||
"(\0132\031.bdledger.api.Transaction\022\032\n\022transac" +
|
||||
"tion_hashes\030\t \003(\014*o\n\017TransactionType\022\n\n\006" +
|
||||
"RECORD\020\000\022\013\n\007MESSAGE\020\001\022\025\n\021CONTRACT_CREATI" +
|
||||
"ON\020\002\022\027\n\023CONTRACT_INVOCATION\020\003\022\023\n\017CONTRAC" +
|
||||
"T_STATUS\020\004BQ\n\030bdledger.api.grpc.commonB\013" +
|
||||
"CommonProtoP\001Z&bdware.org/bdledger/pkg/a" +
|
||||
"pi/grpc/protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
internal_static_bdledger_api_Transaction_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_bdledger_api_Transaction_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_Transaction_descriptor,
|
||||
new java.lang.String[] { "BlockHash", "Index", "Hash", "Type", "From", "Nonce", "To", "Data", "V", "R", "S", });
|
||||
internal_static_bdledger_api_Block_descriptor =
|
||||
getDescriptor().getMessageTypes().get(1);
|
||||
internal_static_bdledger_api_Block_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_Block_descriptor,
|
||||
new java.lang.String[] { "Index", "Hash", "ParentHashes", "Witnesses", "Timestamp", "Size", "TransactionsRoot", "Transactions", "TransactionHashes", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/error_details.proto
|
||||
|
||||
package bdledger.api.grpc.common;
|
||||
|
||||
public final class ErrorDetailsProto {
|
||||
private ErrorDetailsProto() {}
|
||||
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_bdledger_api_InvalidArgument_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_InvalidArgument_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_InvalidArgument_FieldViolation_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_InvalidArgument_FieldViolation_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 bdledger/api/error_details.proto\022\014bdle" +
|
||||
"dger.api\"\217\001\n\017InvalidArgument\022F\n\020field_vi" +
|
||||
"olations\030\001 \003(\0132,.bdledger.api.InvalidArg" +
|
||||
"ument.FieldViolation\0324\n\016FieldViolation\022\r" +
|
||||
"\n\005field\030\001 \001(\t\022\023\n\013description\030\002 \001(\tBW\n\030bd" +
|
||||
"ledger.api.grpc.commonB\021ErrorDetailsProt" +
|
||||
"oP\001Z&bdware.org/bdledger/pkg/api/grpc/pr" +
|
||||
"otob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
internal_static_bdledger_api_InvalidArgument_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_bdledger_api_InvalidArgument_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_InvalidArgument_descriptor,
|
||||
new java.lang.String[] { "FieldViolations", });
|
||||
internal_static_bdledger_api_InvalidArgument_FieldViolation_descriptor =
|
||||
internal_static_bdledger_api_InvalidArgument_descriptor.getNestedTypes().get(0);
|
||||
internal_static_bdledger_api_InvalidArgument_FieldViolation_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_InvalidArgument_FieldViolation_descriptor,
|
||||
new java.lang.String[] { "Field", "Description", });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,53 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/error_details.proto
|
||||
|
||||
package bdledger.api.grpc.common;
|
||||
|
||||
public interface InvalidArgumentOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.InvalidArgument)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Describes all violations in a client request.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdledger.api.InvalidArgument.FieldViolation field_violations = 1;</code>
|
||||
*/
|
||||
java.util.List<bdledger.api.grpc.common.InvalidArgument.FieldViolation>
|
||||
getFieldViolationsList();
|
||||
/**
|
||||
* <pre>
|
||||
* Describes all violations in a client request.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdledger.api.InvalidArgument.FieldViolation field_violations = 1;</code>
|
||||
*/
|
||||
bdledger.api.grpc.common.InvalidArgument.FieldViolation getFieldViolations(int index);
|
||||
/**
|
||||
* <pre>
|
||||
* Describes all violations in a client request.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdledger.api.InvalidArgument.FieldViolation field_violations = 1;</code>
|
||||
*/
|
||||
int getFieldViolationsCount();
|
||||
/**
|
||||
* <pre>
|
||||
* Describes all violations in a client request.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdledger.api.InvalidArgument.FieldViolation field_violations = 1;</code>
|
||||
*/
|
||||
java.util.List<? extends bdledger.api.grpc.common.InvalidArgument.FieldViolationOrBuilder>
|
||||
getFieldViolationsOrBuilderList();
|
||||
/**
|
||||
* <pre>
|
||||
* Describes all violations in a client request.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .bdledger.api.InvalidArgument.FieldViolation field_violations = 1;</code>
|
||||
*/
|
||||
bdledger.api.grpc.common.InvalidArgument.FieldViolationOrBuilder getFieldViolationsOrBuilder(
|
||||
int index);
|
||||
}
|
@ -1,14 +1,14 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/common.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.common;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.Transaction}
|
||||
* Protobuf type {@code bdledger.api.Transaction}
|
||||
*/
|
||||
public final class Transaction extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.Transaction)
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.Transaction)
|
||||
TransactionOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use Transaction.newBuilder() to construct.
|
||||
@ -27,6 +27,13 @@ private static final long serialVersionUID = 0L;
|
||||
s_ = com.google.protobuf.ByteString.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new Transaction();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
@ -40,7 +47,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -128,15 +134,15 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_Transaction_descriptor;
|
||||
return bdledger.api.grpc.common.CommonProto.internal_static_bdledger_api_Transaction_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_Transaction_fieldAccessorTable
|
||||
return bdledger.api.grpc.common.CommonProto.internal_static_bdledger_api_Transaction_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.Transaction.class, bdchain.api.grpc.txledger.Transaction.Builder.class);
|
||||
bdledger.api.grpc.common.Transaction.class, bdledger.api.grpc.common.Transaction.Builder.class);
|
||||
}
|
||||
|
||||
public static final int BLOCK_HASH_FIELD_NUMBER = 1;
|
||||
@ -147,6 +153,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes block_hash = 1;</code>
|
||||
* @return The blockHash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getBlockHash() {
|
||||
return blockHash_;
|
||||
@ -160,6 +167,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 index = 2;</code>
|
||||
* @return The index.
|
||||
*/
|
||||
public int getIndex() {
|
||||
return index_;
|
||||
@ -173,6 +181,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes hash = 3;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getHash() {
|
||||
return hash_;
|
||||
@ -185,7 +194,8 @@ private static final long serialVersionUID = 0L;
|
||||
* 事务类型
|
||||
* </pre>
|
||||
*
|
||||
* <code>.bdchain.api.common.TransactionType type = 4;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 4;</code>
|
||||
* @return The enum numeric value on the wire for type.
|
||||
*/
|
||||
public int getTypeValue() {
|
||||
return type_;
|
||||
@ -195,12 +205,13 @@ private static final long serialVersionUID = 0L;
|
||||
* 事务类型
|
||||
* </pre>
|
||||
*
|
||||
* <code>.bdchain.api.common.TransactionType type = 4;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 4;</code>
|
||||
* @return The type.
|
||||
*/
|
||||
public bdchain.api.grpc.common.TransactionType getType() {
|
||||
public bdledger.api.grpc.common.TransactionType getType() {
|
||||
@SuppressWarnings("deprecation")
|
||||
bdchain.api.grpc.common.TransactionType result = bdchain.api.grpc.common.TransactionType.valueOf(type_);
|
||||
return result == null ? bdchain.api.grpc.common.TransactionType.UNRECOGNIZED : result;
|
||||
bdledger.api.grpc.common.TransactionType result = bdledger.api.grpc.common.TransactionType.valueOf(type_);
|
||||
return result == null ? bdledger.api.grpc.common.TransactionType.UNRECOGNIZED : result;
|
||||
}
|
||||
|
||||
public static final int FROM_FIELD_NUMBER = 5;
|
||||
@ -211,6 +222,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes from = 5;</code>
|
||||
* @return The from.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getFrom() {
|
||||
return from_;
|
||||
@ -224,6 +236,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 nonce = 6;</code>
|
||||
* @return The nonce.
|
||||
*/
|
||||
public long getNonce() {
|
||||
return nonce_;
|
||||
@ -237,6 +250,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes to = 7;</code>
|
||||
* @return The to.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getTo() {
|
||||
return to_;
|
||||
@ -250,6 +264,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes data = 8;</code>
|
||||
* @return The data.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getData() {
|
||||
return data_;
|
||||
@ -263,6 +278,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes v = 9;</code>
|
||||
* @return The v.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getV() {
|
||||
return v_;
|
||||
@ -276,6 +292,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes r = 10;</code>
|
||||
* @return The r.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getR() {
|
||||
return r_;
|
||||
@ -289,6 +306,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes s = 11;</code>
|
||||
* @return The s.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getS() {
|
||||
return s_;
|
||||
@ -317,7 +335,7 @@ private static final long serialVersionUID = 0L;
|
||||
if (!hash_.isEmpty()) {
|
||||
output.writeBytes(3, hash_);
|
||||
}
|
||||
if (type_ != bdchain.api.grpc.common.TransactionType.RECORD.getNumber()) {
|
||||
if (type_ != bdledger.api.grpc.common.TransactionType.RECORD.getNumber()) {
|
||||
output.writeEnum(4, type_);
|
||||
}
|
||||
if (!from_.isEmpty()) {
|
||||
@ -362,7 +380,7 @@ private static final long serialVersionUID = 0L;
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBytesSize(3, hash_);
|
||||
}
|
||||
if (type_ != bdchain.api.grpc.common.TransactionType.RECORD.getNumber()) {
|
||||
if (type_ != bdledger.api.grpc.common.TransactionType.RECORD.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(4, type_);
|
||||
}
|
||||
@ -404,10 +422,10 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.txledger.Transaction)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.common.Transaction)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.txledger.Transaction other = (bdchain.api.grpc.txledger.Transaction) obj;
|
||||
bdledger.api.grpc.common.Transaction other = (bdledger.api.grpc.common.Transaction) obj;
|
||||
|
||||
if (!getBlockHash()
|
||||
.equals(other.getBlockHash())) return false;
|
||||
@ -469,69 +487,69 @@ private static final long serialVersionUID = 0L;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.common.Transaction parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.common.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.txledger.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.common.Transaction parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.common.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.txledger.Transaction parseFrom(byte[] data)
|
||||
public static bdledger.api.grpc.common.Transaction parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.common.Transaction parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.Transaction parseFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.common.Transaction parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.common.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.txledger.Transaction parseDelimitedFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.common.Transaction parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.Transaction parseDelimitedFrom(
|
||||
public static bdledger.api.grpc.common.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.txledger.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.common.Transaction parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.common.Transaction parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -544,7 +562,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.txledger.Transaction prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.common.Transaction prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -560,26 +578,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.Transaction}
|
||||
* Protobuf type {@code bdledger.api.Transaction}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.Transaction)
|
||||
bdchain.api.grpc.txledger.TransactionOrBuilder {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.Transaction)
|
||||
bdledger.api.grpc.common.TransactionOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_Transaction_descriptor;
|
||||
return bdledger.api.grpc.common.CommonProto.internal_static_bdledger_api_Transaction_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_Transaction_fieldAccessorTable
|
||||
return bdledger.api.grpc.common.CommonProto.internal_static_bdledger_api_Transaction_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.Transaction.class, bdchain.api.grpc.txledger.Transaction.Builder.class);
|
||||
bdledger.api.grpc.common.Transaction.class, bdledger.api.grpc.common.Transaction.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.txledger.Transaction.newBuilder()
|
||||
// Construct using bdledger.api.grpc.common.Transaction.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -625,17 +643,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_Transaction_descriptor;
|
||||
return bdledger.api.grpc.common.CommonProto.internal_static_bdledger_api_Transaction_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.Transaction getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.txledger.Transaction.getDefaultInstance();
|
||||
public bdledger.api.grpc.common.Transaction getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.common.Transaction.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.Transaction build() {
|
||||
bdchain.api.grpc.txledger.Transaction result = buildPartial();
|
||||
public bdledger.api.grpc.common.Transaction build() {
|
||||
bdledger.api.grpc.common.Transaction result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -643,8 +661,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.Transaction buildPartial() {
|
||||
bdchain.api.grpc.txledger.Transaction result = new bdchain.api.grpc.txledger.Transaction(this);
|
||||
public bdledger.api.grpc.common.Transaction buildPartial() {
|
||||
bdledger.api.grpc.common.Transaction result = new bdledger.api.grpc.common.Transaction(this);
|
||||
result.blockHash_ = blockHash_;
|
||||
result.index_ = index_;
|
||||
result.hash_ = hash_;
|
||||
@ -694,16 +712,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof bdchain.api.grpc.txledger.Transaction) {
|
||||
return mergeFrom((bdchain.api.grpc.txledger.Transaction)other);
|
||||
if (other instanceof bdledger.api.grpc.common.Transaction) {
|
||||
return mergeFrom((bdledger.api.grpc.common.Transaction)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdchain.api.grpc.txledger.Transaction other) {
|
||||
if (other == bdchain.api.grpc.txledger.Transaction.getDefaultInstance()) return this;
|
||||
public Builder mergeFrom(bdledger.api.grpc.common.Transaction other) {
|
||||
if (other == bdledger.api.grpc.common.Transaction.getDefaultInstance()) return this;
|
||||
if (other.getBlockHash() != com.google.protobuf.ByteString.EMPTY) {
|
||||
setBlockHash(other.getBlockHash());
|
||||
}
|
||||
@ -752,11 +770,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.txledger.Transaction parsedMessage = null;
|
||||
bdledger.api.grpc.common.Transaction parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.txledger.Transaction) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.common.Transaction) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -773,6 +791,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes block_hash = 1;</code>
|
||||
* @return The blockHash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getBlockHash() {
|
||||
return blockHash_;
|
||||
@ -783,6 +802,8 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes block_hash = 1;</code>
|
||||
* @param value The blockHash to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setBlockHash(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -799,6 +820,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes block_hash = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearBlockHash() {
|
||||
|
||||
@ -814,6 +836,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 index = 2;</code>
|
||||
* @return The index.
|
||||
*/
|
||||
public int getIndex() {
|
||||
return index_;
|
||||
@ -824,6 +847,8 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 index = 2;</code>
|
||||
* @param value The index to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setIndex(int value) {
|
||||
|
||||
@ -837,6 +862,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 index = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearIndex() {
|
||||
|
||||
@ -852,6 +878,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes hash = 3;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getHash() {
|
||||
return hash_;
|
||||
@ -862,6 +889,8 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes hash = 3;</code>
|
||||
* @param value The hash to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setHash(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -878,6 +907,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes hash = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearHash() {
|
||||
|
||||
@ -892,7 +922,8 @@ private static final long serialVersionUID = 0L;
|
||||
* 事务类型
|
||||
* </pre>
|
||||
*
|
||||
* <code>.bdchain.api.common.TransactionType type = 4;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 4;</code>
|
||||
* @return The enum numeric value on the wire for type.
|
||||
*/
|
||||
public int getTypeValue() {
|
||||
return type_;
|
||||
@ -902,7 +933,9 @@ private static final long serialVersionUID = 0L;
|
||||
* 事务类型
|
||||
* </pre>
|
||||
*
|
||||
* <code>.bdchain.api.common.TransactionType type = 4;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 4;</code>
|
||||
* @param value The enum numeric value on the wire for type to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTypeValue(int value) {
|
||||
type_ = value;
|
||||
@ -914,21 +947,24 @@ private static final long serialVersionUID = 0L;
|
||||
* 事务类型
|
||||
* </pre>
|
||||
*
|
||||
* <code>.bdchain.api.common.TransactionType type = 4;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 4;</code>
|
||||
* @return The type.
|
||||
*/
|
||||
public bdchain.api.grpc.common.TransactionType getType() {
|
||||
public bdledger.api.grpc.common.TransactionType getType() {
|
||||
@SuppressWarnings("deprecation")
|
||||
bdchain.api.grpc.common.TransactionType result = bdchain.api.grpc.common.TransactionType.valueOf(type_);
|
||||
return result == null ? bdchain.api.grpc.common.TransactionType.UNRECOGNIZED : result;
|
||||
bdledger.api.grpc.common.TransactionType result = bdledger.api.grpc.common.TransactionType.valueOf(type_);
|
||||
return result == null ? bdledger.api.grpc.common.TransactionType.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* 事务类型
|
||||
* </pre>
|
||||
*
|
||||
* <code>.bdchain.api.common.TransactionType type = 4;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 4;</code>
|
||||
* @param value The type to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setType(bdchain.api.grpc.common.TransactionType value) {
|
||||
public Builder setType(bdledger.api.grpc.common.TransactionType value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
@ -942,7 +978,8 @@ private static final long serialVersionUID = 0L;
|
||||
* 事务类型
|
||||
* </pre>
|
||||
*
|
||||
* <code>.bdchain.api.common.TransactionType type = 4;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearType() {
|
||||
|
||||
@ -958,6 +995,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes from = 5;</code>
|
||||
* @return The from.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getFrom() {
|
||||
return from_;
|
||||
@ -968,6 +1006,8 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes from = 5;</code>
|
||||
* @param value The from to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setFrom(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -984,6 +1024,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes from = 5;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearFrom() {
|
||||
|
||||
@ -999,6 +1040,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 nonce = 6;</code>
|
||||
* @return The nonce.
|
||||
*/
|
||||
public long getNonce() {
|
||||
return nonce_;
|
||||
@ -1009,6 +1051,8 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 nonce = 6;</code>
|
||||
* @param value The nonce to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setNonce(long value) {
|
||||
|
||||
@ -1022,6 +1066,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 nonce = 6;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearNonce() {
|
||||
|
||||
@ -1037,6 +1082,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes to = 7;</code>
|
||||
* @return The to.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getTo() {
|
||||
return to_;
|
||||
@ -1047,6 +1093,8 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes to = 7;</code>
|
||||
* @param value The to to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTo(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -1063,6 +1111,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes to = 7;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTo() {
|
||||
|
||||
@ -1078,6 +1127,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes data = 8;</code>
|
||||
* @return The data.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getData() {
|
||||
return data_;
|
||||
@ -1088,6 +1138,8 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes data = 8;</code>
|
||||
* @param value The data to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setData(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -1104,6 +1156,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes data = 8;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearData() {
|
||||
|
||||
@ -1119,6 +1172,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes v = 9;</code>
|
||||
* @return The v.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getV() {
|
||||
return v_;
|
||||
@ -1129,6 +1183,8 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes v = 9;</code>
|
||||
* @param value The v to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setV(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -1145,6 +1201,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes v = 9;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearV() {
|
||||
|
||||
@ -1160,6 +1217,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes r = 10;</code>
|
||||
* @return The r.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getR() {
|
||||
return r_;
|
||||
@ -1170,6 +1228,8 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes r = 10;</code>
|
||||
* @param value The r to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setR(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -1186,6 +1246,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes r = 10;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearR() {
|
||||
|
||||
@ -1201,6 +1262,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes s = 11;</code>
|
||||
* @return The s.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getS() {
|
||||
return s_;
|
||||
@ -1211,6 +1273,8 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes s = 11;</code>
|
||||
* @param value The s to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setS(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -1227,6 +1291,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes s = 11;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearS() {
|
||||
|
||||
@ -1247,16 +1312,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.Transaction)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.Transaction)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.Transaction)
|
||||
private static final bdchain.api.grpc.txledger.Transaction DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.Transaction)
|
||||
private static final bdledger.api.grpc.common.Transaction DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.Transaction();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.common.Transaction();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.Transaction getDefaultInstance() {
|
||||
public static bdledger.api.grpc.common.Transaction getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
@ -1281,7 +1346,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.Transaction getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.common.Transaction getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/common.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.common;
|
||||
|
||||
public interface TransactionOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.Transaction)
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.Transaction)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
@ -13,6 +13,7 @@ public interface TransactionOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes block_hash = 1;</code>
|
||||
* @return The blockHash.
|
||||
*/
|
||||
com.google.protobuf.ByteString getBlockHash();
|
||||
|
||||
@ -22,6 +23,7 @@ public interface TransactionOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 index = 2;</code>
|
||||
* @return The index.
|
||||
*/
|
||||
int getIndex();
|
||||
|
||||
@ -31,6 +33,7 @@ public interface TransactionOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes hash = 3;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
com.google.protobuf.ByteString getHash();
|
||||
|
||||
@ -39,7 +42,8 @@ public interface TransactionOrBuilder extends
|
||||
* 事务类型
|
||||
* </pre>
|
||||
*
|
||||
* <code>.bdchain.api.common.TransactionType type = 4;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 4;</code>
|
||||
* @return The enum numeric value on the wire for type.
|
||||
*/
|
||||
int getTypeValue();
|
||||
/**
|
||||
@ -47,9 +51,10 @@ public interface TransactionOrBuilder extends
|
||||
* 事务类型
|
||||
* </pre>
|
||||
*
|
||||
* <code>.bdchain.api.common.TransactionType type = 4;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 4;</code>
|
||||
* @return The type.
|
||||
*/
|
||||
bdchain.api.grpc.common.TransactionType getType();
|
||||
bdledger.api.grpc.common.TransactionType getType();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
@ -57,6 +62,7 @@ public interface TransactionOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes from = 5;</code>
|
||||
* @return The from.
|
||||
*/
|
||||
com.google.protobuf.ByteString getFrom();
|
||||
|
||||
@ -66,6 +72,7 @@ public interface TransactionOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint64 nonce = 6;</code>
|
||||
* @return The nonce.
|
||||
*/
|
||||
long getNonce();
|
||||
|
||||
@ -75,6 +82,7 @@ public interface TransactionOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes to = 7;</code>
|
||||
* @return The to.
|
||||
*/
|
||||
com.google.protobuf.ByteString getTo();
|
||||
|
||||
@ -84,6 +92,7 @@ public interface TransactionOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes data = 8;</code>
|
||||
* @return The data.
|
||||
*/
|
||||
com.google.protobuf.ByteString getData();
|
||||
|
||||
@ -93,6 +102,7 @@ public interface TransactionOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes v = 9;</code>
|
||||
* @return The v.
|
||||
*/
|
||||
com.google.protobuf.ByteString getV();
|
||||
|
||||
@ -102,6 +112,7 @@ public interface TransactionOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes r = 10;</code>
|
||||
* @return The r.
|
||||
*/
|
||||
com.google.protobuf.ByteString getR();
|
||||
|
||||
@ -111,6 +122,7 @@ public interface TransactionOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>bytes s = 11;</code>
|
||||
* @return The s.
|
||||
*/
|
||||
com.google.protobuf.ByteString getS();
|
||||
}
|
@ -1,14 +1,14 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/common.proto
|
||||
// source: bdledger/api/common.proto
|
||||
|
||||
package bdchain.api.grpc.common;
|
||||
package bdledger.api.grpc.common;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 事务类型
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code bdchain.api.common.TransactionType}
|
||||
* Protobuf enum {@code bdledger.api.TransactionType}
|
||||
*/
|
||||
public enum TransactionType
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
@ -106,6 +106,8 @@ public enum TransactionType
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
* @deprecated Use {@link #forNumber(int)} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
@ -113,6 +115,10 @@ public enum TransactionType
|
||||
return forNumber(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
*/
|
||||
public static TransactionType forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return RECORD;
|
||||
@ -146,7 +152,7 @@ public enum TransactionType
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.common.CommonProto.getDescriptor().getEnumTypes().get(0);
|
||||
return bdledger.api.grpc.common.CommonProto.getDescriptor().getEnumTypes().get(0);
|
||||
}
|
||||
|
||||
private static final TransactionType[] VALUES = values();
|
||||
@ -169,6 +175,6 @@ public enum TransactionType
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:bdchain.api.common.TransactionType)
|
||||
// @@protoc_insertion_point(enum_scope:bdledger.api.TransactionType)
|
||||
}
|
||||
|
@ -1,14 +1,14 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/ledger.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.ledger;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.CreateLedgerRequest}
|
||||
* Protobuf type {@code bdledger.api.CreateLedgerRequest}
|
||||
*/
|
||||
public final class CreateLedgerRequest extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.CreateLedgerRequest)
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.CreateLedgerRequest)
|
||||
CreateLedgerRequestOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use CreateLedgerRequest.newBuilder() to construct.
|
||||
@ -19,6 +19,13 @@ private static final long serialVersionUID = 0L;
|
||||
name_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new CreateLedgerRequest();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
@ -32,7 +39,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -70,21 +76,22 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerRequest_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_CreateLedgerRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_CreateLedgerRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.CreateLedgerRequest.class, bdchain.api.grpc.txledger.CreateLedgerRequest.Builder.class);
|
||||
bdledger.api.grpc.ledger.CreateLedgerRequest.class, bdledger.api.grpc.ledger.CreateLedgerRequest.Builder.class);
|
||||
}
|
||||
|
||||
public static final int NAME_FIELD_NUMBER = 1;
|
||||
private volatile java.lang.Object name_;
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return The name.
|
||||
*/
|
||||
public java.lang.String getName() {
|
||||
java.lang.Object ref = name_;
|
||||
@ -100,6 +107,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return The bytes for name.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getNameBytes() {
|
||||
@ -154,10 +162,10 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.txledger.CreateLedgerRequest)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.ledger.CreateLedgerRequest)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.txledger.CreateLedgerRequest other = (bdchain.api.grpc.txledger.CreateLedgerRequest) obj;
|
||||
bdledger.api.grpc.ledger.CreateLedgerRequest other = (bdledger.api.grpc.ledger.CreateLedgerRequest) obj;
|
||||
|
||||
if (!getName()
|
||||
.equals(other.getName())) return false;
|
||||
@ -179,69 +187,69 @@ private static final long serialVersionUID = 0L;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerRequest parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.CreateLedgerRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerRequest parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.CreateLedgerRequest parseFrom(byte[] data)
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerRequest parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerRequest parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerRequest parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.CreateLedgerRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseDelimitedFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.CreateLedgerRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -254,7 +262,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.txledger.CreateLedgerRequest prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.ledger.CreateLedgerRequest prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -270,26 +278,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.CreateLedgerRequest}
|
||||
* Protobuf type {@code bdledger.api.CreateLedgerRequest}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.CreateLedgerRequest)
|
||||
bdchain.api.grpc.txledger.CreateLedgerRequestOrBuilder {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.CreateLedgerRequest)
|
||||
bdledger.api.grpc.ledger.CreateLedgerRequestOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerRequest_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_CreateLedgerRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_CreateLedgerRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.CreateLedgerRequest.class, bdchain.api.grpc.txledger.CreateLedgerRequest.Builder.class);
|
||||
bdledger.api.grpc.ledger.CreateLedgerRequest.class, bdledger.api.grpc.ledger.CreateLedgerRequest.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.txledger.CreateLedgerRequest.newBuilder()
|
||||
// Construct using bdledger.api.grpc.ledger.CreateLedgerRequest.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -315,17 +323,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerRequest_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_CreateLedgerRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.CreateLedgerRequest getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.txledger.CreateLedgerRequest.getDefaultInstance();
|
||||
public bdledger.api.grpc.ledger.CreateLedgerRequest getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.ledger.CreateLedgerRequest.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.CreateLedgerRequest build() {
|
||||
bdchain.api.grpc.txledger.CreateLedgerRequest result = buildPartial();
|
||||
public bdledger.api.grpc.ledger.CreateLedgerRequest build() {
|
||||
bdledger.api.grpc.ledger.CreateLedgerRequest result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -333,8 +341,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.CreateLedgerRequest buildPartial() {
|
||||
bdchain.api.grpc.txledger.CreateLedgerRequest result = new bdchain.api.grpc.txledger.CreateLedgerRequest(this);
|
||||
public bdledger.api.grpc.ledger.CreateLedgerRequest buildPartial() {
|
||||
bdledger.api.grpc.ledger.CreateLedgerRequest result = new bdledger.api.grpc.ledger.CreateLedgerRequest(this);
|
||||
result.name_ = name_;
|
||||
onBuilt();
|
||||
return result;
|
||||
@ -374,16 +382,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof bdchain.api.grpc.txledger.CreateLedgerRequest) {
|
||||
return mergeFrom((bdchain.api.grpc.txledger.CreateLedgerRequest)other);
|
||||
if (other instanceof bdledger.api.grpc.ledger.CreateLedgerRequest) {
|
||||
return mergeFrom((bdledger.api.grpc.ledger.CreateLedgerRequest)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdchain.api.grpc.txledger.CreateLedgerRequest other) {
|
||||
if (other == bdchain.api.grpc.txledger.CreateLedgerRequest.getDefaultInstance()) return this;
|
||||
public Builder mergeFrom(bdledger.api.grpc.ledger.CreateLedgerRequest other) {
|
||||
if (other == bdledger.api.grpc.ledger.CreateLedgerRequest.getDefaultInstance()) return this;
|
||||
if (!other.getName().isEmpty()) {
|
||||
name_ = other.name_;
|
||||
onChanged();
|
||||
@ -403,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.txledger.CreateLedgerRequest parsedMessage = null;
|
||||
bdledger.api.grpc.ledger.CreateLedgerRequest parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.txledger.CreateLedgerRequest) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.ledger.CreateLedgerRequest) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -420,6 +428,7 @@ private static final long serialVersionUID = 0L;
|
||||
private java.lang.Object name_ = "";
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return The name.
|
||||
*/
|
||||
public java.lang.String getName() {
|
||||
java.lang.Object ref = name_;
|
||||
@ -435,6 +444,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return The bytes for name.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getNameBytes() {
|
||||
@ -451,6 +461,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @param value The name to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setName(
|
||||
java.lang.String value) {
|
||||
@ -464,6 +476,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearName() {
|
||||
|
||||
@ -473,6 +486,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @param value The bytes for name to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setNameBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
@ -498,16 +513,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.CreateLedgerRequest)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.CreateLedgerRequest)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.CreateLedgerRequest)
|
||||
private static final bdchain.api.grpc.txledger.CreateLedgerRequest DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.CreateLedgerRequest)
|
||||
private static final bdledger.api.grpc.ledger.CreateLedgerRequest DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.CreateLedgerRequest();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.ledger.CreateLedgerRequest();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerRequest getDefaultInstance() {
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerRequest getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
@ -532,7 +547,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.CreateLedgerRequest getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.ledger.CreateLedgerRequest getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -1,18 +1,20 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/ledger.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.ledger;
|
||||
|
||||
public interface CreateLedgerRequestOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.CreateLedgerRequest)
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.CreateLedgerRequest)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return The name.
|
||||
*/
|
||||
java.lang.String getName();
|
||||
/**
|
||||
* <code>string name = 1;</code>
|
||||
* @return The bytes for name.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getNameBytes();
|
@ -1,14 +1,14 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/ledger.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.ledger;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.CreateLedgerResponse}
|
||||
* Protobuf type {@code bdledger.api.CreateLedgerResponse}
|
||||
*/
|
||||
public final class CreateLedgerResponse extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.CreateLedgerResponse)
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.CreateLedgerResponse)
|
||||
CreateLedgerResponseOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use CreateLedgerResponse.newBuilder() to construct.
|
||||
@ -18,6 +18,13 @@ private static final long serialVersionUID = 0L;
|
||||
private CreateLedgerResponse() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new CreateLedgerResponse();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
@ -31,7 +38,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -68,21 +74,22 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerResponse_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_CreateLedgerResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerResponse_fieldAccessorTable
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_CreateLedgerResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.CreateLedgerResponse.class, bdchain.api.grpc.txledger.CreateLedgerResponse.Builder.class);
|
||||
bdledger.api.grpc.ledger.CreateLedgerResponse.class, bdledger.api.grpc.ledger.CreateLedgerResponse.Builder.class);
|
||||
}
|
||||
|
||||
public static final int OK_FIELD_NUMBER = 1;
|
||||
private boolean ok_;
|
||||
/**
|
||||
* <code>bool ok = 1;</code>
|
||||
* @return The ok.
|
||||
*/
|
||||
public boolean getOk() {
|
||||
return ok_;
|
||||
@ -128,10 +135,10 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.txledger.CreateLedgerResponse)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.ledger.CreateLedgerResponse)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.txledger.CreateLedgerResponse other = (bdchain.api.grpc.txledger.CreateLedgerResponse) obj;
|
||||
bdledger.api.grpc.ledger.CreateLedgerResponse other = (bdledger.api.grpc.ledger.CreateLedgerResponse) obj;
|
||||
|
||||
if (getOk()
|
||||
!= other.getOk()) return false;
|
||||
@ -154,69 +161,69 @@ private static final long serialVersionUID = 0L;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerResponse parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.CreateLedgerResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.CreateLedgerResponse parseFrom(byte[] data)
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerResponse parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerResponse parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.CreateLedgerResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseDelimitedFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.CreateLedgerResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -229,7 +236,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.txledger.CreateLedgerResponse prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.ledger.CreateLedgerResponse prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -245,26 +252,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.CreateLedgerResponse}
|
||||
* Protobuf type {@code bdledger.api.CreateLedgerResponse}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.CreateLedgerResponse)
|
||||
bdchain.api.grpc.txledger.CreateLedgerResponseOrBuilder {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.CreateLedgerResponse)
|
||||
bdledger.api.grpc.ledger.CreateLedgerResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerResponse_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_CreateLedgerResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerResponse_fieldAccessorTable
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_CreateLedgerResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.CreateLedgerResponse.class, bdchain.api.grpc.txledger.CreateLedgerResponse.Builder.class);
|
||||
bdledger.api.grpc.ledger.CreateLedgerResponse.class, bdledger.api.grpc.ledger.CreateLedgerResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.txledger.CreateLedgerResponse.newBuilder()
|
||||
// Construct using bdledger.api.grpc.ledger.CreateLedgerResponse.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -290,17 +297,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_CreateLedgerResponse_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_CreateLedgerResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.CreateLedgerResponse getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.txledger.CreateLedgerResponse.getDefaultInstance();
|
||||
public bdledger.api.grpc.ledger.CreateLedgerResponse getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.ledger.CreateLedgerResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.CreateLedgerResponse build() {
|
||||
bdchain.api.grpc.txledger.CreateLedgerResponse result = buildPartial();
|
||||
public bdledger.api.grpc.ledger.CreateLedgerResponse build() {
|
||||
bdledger.api.grpc.ledger.CreateLedgerResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -308,8 +315,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.CreateLedgerResponse buildPartial() {
|
||||
bdchain.api.grpc.txledger.CreateLedgerResponse result = new bdchain.api.grpc.txledger.CreateLedgerResponse(this);
|
||||
public bdledger.api.grpc.ledger.CreateLedgerResponse buildPartial() {
|
||||
bdledger.api.grpc.ledger.CreateLedgerResponse result = new bdledger.api.grpc.ledger.CreateLedgerResponse(this);
|
||||
result.ok_ = ok_;
|
||||
onBuilt();
|
||||
return result;
|
||||
@ -349,16 +356,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof bdchain.api.grpc.txledger.CreateLedgerResponse) {
|
||||
return mergeFrom((bdchain.api.grpc.txledger.CreateLedgerResponse)other);
|
||||
if (other instanceof bdledger.api.grpc.ledger.CreateLedgerResponse) {
|
||||
return mergeFrom((bdledger.api.grpc.ledger.CreateLedgerResponse)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdchain.api.grpc.txledger.CreateLedgerResponse other) {
|
||||
if (other == bdchain.api.grpc.txledger.CreateLedgerResponse.getDefaultInstance()) return this;
|
||||
public Builder mergeFrom(bdledger.api.grpc.ledger.CreateLedgerResponse other) {
|
||||
if (other == bdledger.api.grpc.ledger.CreateLedgerResponse.getDefaultInstance()) return this;
|
||||
if (other.getOk() != false) {
|
||||
setOk(other.getOk());
|
||||
}
|
||||
@ -377,11 +384,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.txledger.CreateLedgerResponse parsedMessage = null;
|
||||
bdledger.api.grpc.ledger.CreateLedgerResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.txledger.CreateLedgerResponse) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.ledger.CreateLedgerResponse) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -394,12 +401,15 @@ private static final long serialVersionUID = 0L;
|
||||
private boolean ok_ ;
|
||||
/**
|
||||
* <code>bool ok = 1;</code>
|
||||
* @return The ok.
|
||||
*/
|
||||
public boolean getOk() {
|
||||
return ok_;
|
||||
}
|
||||
/**
|
||||
* <code>bool ok = 1;</code>
|
||||
* @param value The ok to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setOk(boolean value) {
|
||||
|
||||
@ -409,6 +419,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>bool ok = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearOk() {
|
||||
|
||||
@ -429,16 +440,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.CreateLedgerResponse)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.CreateLedgerResponse)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.CreateLedgerResponse)
|
||||
private static final bdchain.api.grpc.txledger.CreateLedgerResponse DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.CreateLedgerResponse)
|
||||
private static final bdledger.api.grpc.ledger.CreateLedgerResponse DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.CreateLedgerResponse();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.ledger.CreateLedgerResponse();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.CreateLedgerResponse getDefaultInstance() {
|
||||
public static bdledger.api.grpc.ledger.CreateLedgerResponse getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
@ -463,7 +474,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.CreateLedgerResponse getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.ledger.CreateLedgerResponse getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -1,14 +1,15 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/ledger.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.ledger;
|
||||
|
||||
public interface CreateLedgerResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.CreateLedgerResponse)
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.CreateLedgerResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>bool ok = 1;</code>
|
||||
* @return The ok.
|
||||
*/
|
||||
boolean getOk();
|
||||
}
|
@ -1,14 +1,14 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/ledger.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.ledger;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.GetLedgersResponse}
|
||||
* Protobuf type {@code bdledger.api.GetLedgersResponse}
|
||||
*/
|
||||
public final class GetLedgersResponse extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.GetLedgersResponse)
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.GetLedgersResponse)
|
||||
GetLedgersResponseOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GetLedgersResponse.newBuilder() to construct.
|
||||
@ -19,6 +19,13 @@ private static final long serialVersionUID = 0L;
|
||||
ledgers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new GetLedgersResponse();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
@ -76,21 +83,22 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetLedgersResponse_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_GetLedgersResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetLedgersResponse_fieldAccessorTable
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_GetLedgersResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.GetLedgersResponse.class, bdchain.api.grpc.txledger.GetLedgersResponse.Builder.class);
|
||||
bdledger.api.grpc.ledger.GetLedgersResponse.class, bdledger.api.grpc.ledger.GetLedgersResponse.Builder.class);
|
||||
}
|
||||
|
||||
public static final int LEDGERS_FIELD_NUMBER = 1;
|
||||
private com.google.protobuf.LazyStringList ledgers_;
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @return A list containing the ledgers.
|
||||
*/
|
||||
public com.google.protobuf.ProtocolStringList
|
||||
getLedgersList() {
|
||||
@ -98,18 +106,23 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @return The count of ledgers.
|
||||
*/
|
||||
public int getLedgersCount() {
|
||||
return ledgers_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The ledgers at the given index.
|
||||
*/
|
||||
public java.lang.String getLedgers(int index) {
|
||||
return ledgers_.get(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @param index The index of the value to return.
|
||||
* @return The bytes of the ledgers at the given index.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getLedgersBytes(int index) {
|
||||
@ -160,10 +173,10 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.txledger.GetLedgersResponse)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.ledger.GetLedgersResponse)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.txledger.GetLedgersResponse other = (bdchain.api.grpc.txledger.GetLedgersResponse) obj;
|
||||
bdledger.api.grpc.ledger.GetLedgersResponse other = (bdledger.api.grpc.ledger.GetLedgersResponse) obj;
|
||||
|
||||
if (!getLedgersList()
|
||||
.equals(other.getLedgersList())) return false;
|
||||
@ -187,69 +200,69 @@ private static final long serialVersionUID = 0L;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.GetLedgersResponse parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.GetLedgersResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.GetLedgersResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.GetLedgersResponse parseFrom(byte[] data)
|
||||
public static bdledger.api.grpc.ledger.GetLedgersResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.GetLedgersResponse parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.ledger.GetLedgersResponse parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.GetLedgersResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.ledger.GetLedgersResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.GetLedgersResponse parseDelimitedFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.GetLedgersResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.GetLedgersResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.GetLedgersResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.GetLedgersResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -262,7 +275,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.txledger.GetLedgersResponse prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.ledger.GetLedgersResponse prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -278,26 +291,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.GetLedgersResponse}
|
||||
* Protobuf type {@code bdledger.api.GetLedgersResponse}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.GetLedgersResponse)
|
||||
bdchain.api.grpc.txledger.GetLedgersResponseOrBuilder {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.GetLedgersResponse)
|
||||
bdledger.api.grpc.ledger.GetLedgersResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetLedgersResponse_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_GetLedgersResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetLedgersResponse_fieldAccessorTable
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_GetLedgersResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.GetLedgersResponse.class, bdchain.api.grpc.txledger.GetLedgersResponse.Builder.class);
|
||||
bdledger.api.grpc.ledger.GetLedgersResponse.class, bdledger.api.grpc.ledger.GetLedgersResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.txledger.GetLedgersResponse.newBuilder()
|
||||
// Construct using bdledger.api.grpc.ledger.GetLedgersResponse.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -323,17 +336,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetLedgersResponse_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_GetLedgersResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.GetLedgersResponse getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.txledger.GetLedgersResponse.getDefaultInstance();
|
||||
public bdledger.api.grpc.ledger.GetLedgersResponse getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.ledger.GetLedgersResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.GetLedgersResponse build() {
|
||||
bdchain.api.grpc.txledger.GetLedgersResponse result = buildPartial();
|
||||
public bdledger.api.grpc.ledger.GetLedgersResponse build() {
|
||||
bdledger.api.grpc.ledger.GetLedgersResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -341,8 +354,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.GetLedgersResponse buildPartial() {
|
||||
bdchain.api.grpc.txledger.GetLedgersResponse result = new bdchain.api.grpc.txledger.GetLedgersResponse(this);
|
||||
public bdledger.api.grpc.ledger.GetLedgersResponse buildPartial() {
|
||||
bdledger.api.grpc.ledger.GetLedgersResponse result = new bdledger.api.grpc.ledger.GetLedgersResponse(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
ledgers_ = ledgers_.getUnmodifiableView();
|
||||
@ -387,16 +400,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof bdchain.api.grpc.txledger.GetLedgersResponse) {
|
||||
return mergeFrom((bdchain.api.grpc.txledger.GetLedgersResponse)other);
|
||||
if (other instanceof bdledger.api.grpc.ledger.GetLedgersResponse) {
|
||||
return mergeFrom((bdledger.api.grpc.ledger.GetLedgersResponse)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdchain.api.grpc.txledger.GetLedgersResponse other) {
|
||||
if (other == bdchain.api.grpc.txledger.GetLedgersResponse.getDefaultInstance()) return this;
|
||||
public Builder mergeFrom(bdledger.api.grpc.ledger.GetLedgersResponse other) {
|
||||
if (other == bdledger.api.grpc.ledger.GetLedgersResponse.getDefaultInstance()) return this;
|
||||
if (!other.ledgers_.isEmpty()) {
|
||||
if (ledgers_.isEmpty()) {
|
||||
ledgers_ = other.ledgers_;
|
||||
@ -422,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.txledger.GetLedgersResponse parsedMessage = null;
|
||||
bdledger.api.grpc.ledger.GetLedgersResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.txledger.GetLedgersResponse) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.ledger.GetLedgersResponse) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -446,6 +459,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @return A list containing the ledgers.
|
||||
*/
|
||||
public com.google.protobuf.ProtocolStringList
|
||||
getLedgersList() {
|
||||
@ -453,18 +467,23 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @return The count of ledgers.
|
||||
*/
|
||||
public int getLedgersCount() {
|
||||
return ledgers_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The ledgers at the given index.
|
||||
*/
|
||||
public java.lang.String getLedgers(int index) {
|
||||
return ledgers_.get(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @param index The index of the value to return.
|
||||
* @return The bytes of the ledgers at the given index.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getLedgersBytes(int index) {
|
||||
@ -472,6 +491,9 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The ledgers to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLedgers(
|
||||
int index, java.lang.String value) {
|
||||
@ -485,6 +507,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @param value The ledgers to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addLedgers(
|
||||
java.lang.String value) {
|
||||
@ -498,6 +522,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @param values The ledgers to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addAllLedgers(
|
||||
java.lang.Iterable<java.lang.String> values) {
|
||||
@ -509,6 +535,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearLedgers() {
|
||||
ledgers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
@ -518,6 +545,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @param value The bytes of the ledgers to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addLedgersBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
@ -543,16 +572,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.GetLedgersResponse)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.GetLedgersResponse)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.GetLedgersResponse)
|
||||
private static final bdchain.api.grpc.txledger.GetLedgersResponse DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.GetLedgersResponse)
|
||||
private static final bdledger.api.grpc.ledger.GetLedgersResponse DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.GetLedgersResponse();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.ledger.GetLedgersResponse();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.GetLedgersResponse getDefaultInstance() {
|
||||
public static bdledger.api.grpc.ledger.GetLedgersResponse getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
@ -577,7 +606,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.GetLedgersResponse getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.ledger.GetLedgersResponse getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -1,27 +1,33 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/ledger.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.ledger;
|
||||
|
||||
public interface GetLedgersResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.GetLedgersResponse)
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.GetLedgersResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @return A list containing the ledgers.
|
||||
*/
|
||||
java.util.List<java.lang.String>
|
||||
getLedgersList();
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @return The count of ledgers.
|
||||
*/
|
||||
int getLedgersCount();
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The ledgers at the given index.
|
||||
*/
|
||||
java.lang.String getLedgers(int index);
|
||||
/**
|
||||
* <code>repeated string ledgers = 1;</code>
|
||||
* @param index The index of the value to return.
|
||||
* @return The bytes of the ledgers at the given index.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getLedgersBytes(int index);
|
125
src/main/java/bdledger/api/grpc/ledger/LedgerProto.java
Normal file
125
src/main/java/bdledger/api/grpc/ledger/LedgerProto.java
Normal file
@ -0,0 +1,125 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/ledger.proto
|
||||
|
||||
package bdledger.api.grpc.ledger;
|
||||
|
||||
public final class LedgerProto {
|
||||
private LedgerProto() {}
|
||||
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_bdledger_api_CreateLedgerRequest_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_CreateLedgerRequest_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_CreateLedgerResponse_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_CreateLedgerResponse_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_GetLedgersResponse_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_GetLedgersResponse_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_SendTransactionRequest_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_SendTransactionRequest_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_SendTransactionRequest_Transaction_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_SendTransactionRequest_Transaction_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_SendTransactionResponse_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_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\031bdledger/api/ledger.proto\022\014bdledger.ap" +
|
||||
"i\032\033google/protobuf/empty.proto\032\031bdledger" +
|
||||
"/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\"\323\001\n\026SendTransactionRequest\022\016\n\006" +
|
||||
"ledger\030\001 \001(\t\022E\n\013transaction\030\002 \001(\01320.bdle" +
|
||||
"dger.api.SendTransactionRequest.Transact" +
|
||||
"ion\032b\n\013Transaction\022+\n\004type\030\001 \001(\0162\035.bdled" +
|
||||
"ger.api.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\027SendTransacti" +
|
||||
"onResponse\022\014\n\004hash\030\001 \001(\0142\222\002\n\021Transaction" +
|
||||
"Ledger\022U\n\014CreateLedger\022!.bdledger.api.Cr" +
|
||||
"eateLedgerRequest\032\".bdledger.api.CreateL" +
|
||||
"edgerResponse\022F\n\nGetLedgers\022\026.google.pro" +
|
||||
"tobuf.Empty\032 .bdledger.api.GetLedgersRes" +
|
||||
"ponse\022^\n\017SendTransaction\022$.bdledger.api." +
|
||||
"SendTransactionRequest\032%.bdledger.api.Se" +
|
||||
"ndTransactionResponseBQ\n\030bdledger.api.gr" +
|
||||
"pc.ledgerB\013LedgerProtoP\001Z&bdware.org/bdl" +
|
||||
"edger/pkg/api/grpc/protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
com.google.protobuf.EmptyProto.getDescriptor(),
|
||||
bdledger.api.grpc.common.CommonProto.getDescriptor(),
|
||||
});
|
||||
internal_static_bdledger_api_CreateLedgerRequest_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_bdledger_api_CreateLedgerRequest_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_CreateLedgerRequest_descriptor,
|
||||
new java.lang.String[] { "Name", });
|
||||
internal_static_bdledger_api_CreateLedgerResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(1);
|
||||
internal_static_bdledger_api_CreateLedgerResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_CreateLedgerResponse_descriptor,
|
||||
new java.lang.String[] { "Ok", });
|
||||
internal_static_bdledger_api_GetLedgersResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(2);
|
||||
internal_static_bdledger_api_GetLedgersResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_GetLedgersResponse_descriptor,
|
||||
new java.lang.String[] { "Ledgers", });
|
||||
internal_static_bdledger_api_SendTransactionRequest_descriptor =
|
||||
getDescriptor().getMessageTypes().get(3);
|
||||
internal_static_bdledger_api_SendTransactionRequest_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_SendTransactionRequest_descriptor,
|
||||
new java.lang.String[] { "Ledger", "Transaction", });
|
||||
internal_static_bdledger_api_SendTransactionRequest_Transaction_descriptor =
|
||||
internal_static_bdledger_api_SendTransactionRequest_descriptor.getNestedTypes().get(0);
|
||||
internal_static_bdledger_api_SendTransactionRequest_Transaction_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_SendTransactionRequest_Transaction_descriptor,
|
||||
new java.lang.String[] { "Type", "From", "To", "Data", });
|
||||
internal_static_bdledger_api_SendTransactionResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(4);
|
||||
internal_static_bdledger_api_SendTransactionResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_SendTransactionResponse_descriptor,
|
||||
new java.lang.String[] { "Hash", });
|
||||
com.google.protobuf.EmptyProto.getDescriptor();
|
||||
bdledger.api.grpc.common.CommonProto.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
@ -1,14 +1,14 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/ledger.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.ledger;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.SendTransactionRequest}
|
||||
* Protobuf type {@code bdledger.api.SendTransactionRequest}
|
||||
*/
|
||||
public final class SendTransactionRequest extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.SendTransactionRequest)
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.SendTransactionRequest)
|
||||
SendTransactionRequestOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use SendTransactionRequest.newBuilder() to construct.
|
||||
@ -19,6 +19,13 @@ private static final long serialVersionUID = 0L;
|
||||
ledger_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new SendTransactionRequest();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
@ -32,7 +39,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -50,11 +56,11 @@ private static final long serialVersionUID = 0L;
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder subBuilder = null;
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.Builder subBuilder = null;
|
||||
if (transaction_ != null) {
|
||||
subBuilder = transaction_.toBuilder();
|
||||
}
|
||||
transaction_ = input.readMessage(bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.parser(), extensionRegistry);
|
||||
transaction_ = input.readMessage(bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.parser(), extensionRegistry);
|
||||
if (subBuilder != null) {
|
||||
subBuilder.mergeFrom(transaction_);
|
||||
transaction_ = subBuilder.buildPartial();
|
||||
@ -83,51 +89,56 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.class, bdchain.api.grpc.txledger.SendTransactionRequest.Builder.class);
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.class, bdledger.api.grpc.ledger.SendTransactionRequest.Builder.class);
|
||||
}
|
||||
|
||||
public interface TransactionOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.SendTransactionRequest.Transaction)
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.SendTransactionRequest.Transaction)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>.bdchain.api.common.TransactionType type = 1;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 1;</code>
|
||||
* @return The enum numeric value on the wire for type.
|
||||
*/
|
||||
int getTypeValue();
|
||||
/**
|
||||
* <code>.bdchain.api.common.TransactionType type = 1;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 1;</code>
|
||||
* @return The type.
|
||||
*/
|
||||
bdchain.api.grpc.common.TransactionType getType();
|
||||
bdledger.api.grpc.common.TransactionType getType();
|
||||
|
||||
/**
|
||||
* <code>bytes from = 2;</code>
|
||||
* @return The from.
|
||||
*/
|
||||
com.google.protobuf.ByteString getFrom();
|
||||
|
||||
/**
|
||||
* <code>bytes to = 3;</code>
|
||||
* @return The to.
|
||||
*/
|
||||
com.google.protobuf.ByteString getTo();
|
||||
|
||||
/**
|
||||
* <code>bytes data = 4;</code>
|
||||
* @return The data.
|
||||
*/
|
||||
com.google.protobuf.ByteString getData();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.SendTransactionRequest.Transaction}
|
||||
* Protobuf type {@code bdledger.api.SendTransactionRequest.Transaction}
|
||||
*/
|
||||
public static final class Transaction extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.SendTransactionRequest.Transaction)
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.SendTransactionRequest.Transaction)
|
||||
TransactionOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use Transaction.newBuilder() to construct.
|
||||
@ -141,6 +152,13 @@ private static final long serialVersionUID = 0L;
|
||||
data_ = com.google.protobuf.ByteString.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new Transaction();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
@ -154,7 +172,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -207,38 +224,41 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionRequest_Transaction_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_fieldAccessorTable
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionRequest_Transaction_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.class, bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder.class);
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.class, bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.Builder.class);
|
||||
}
|
||||
|
||||
public static final int TYPE_FIELD_NUMBER = 1;
|
||||
private int type_;
|
||||
/**
|
||||
* <code>.bdchain.api.common.TransactionType type = 1;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 1;</code>
|
||||
* @return The enum numeric value on the wire for type.
|
||||
*/
|
||||
public int getTypeValue() {
|
||||
return type_;
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.common.TransactionType type = 1;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 1;</code>
|
||||
* @return The type.
|
||||
*/
|
||||
public bdchain.api.grpc.common.TransactionType getType() {
|
||||
public bdledger.api.grpc.common.TransactionType getType() {
|
||||
@SuppressWarnings("deprecation")
|
||||
bdchain.api.grpc.common.TransactionType result = bdchain.api.grpc.common.TransactionType.valueOf(type_);
|
||||
return result == null ? bdchain.api.grpc.common.TransactionType.UNRECOGNIZED : result;
|
||||
bdledger.api.grpc.common.TransactionType result = bdledger.api.grpc.common.TransactionType.valueOf(type_);
|
||||
return result == null ? bdledger.api.grpc.common.TransactionType.UNRECOGNIZED : result;
|
||||
}
|
||||
|
||||
public static final int FROM_FIELD_NUMBER = 2;
|
||||
private com.google.protobuf.ByteString from_;
|
||||
/**
|
||||
* <code>bytes from = 2;</code>
|
||||
* @return The from.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getFrom() {
|
||||
return from_;
|
||||
@ -248,6 +268,7 @@ private static final long serialVersionUID = 0L;
|
||||
private com.google.protobuf.ByteString to_;
|
||||
/**
|
||||
* <code>bytes to = 3;</code>
|
||||
* @return The to.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getTo() {
|
||||
return to_;
|
||||
@ -257,6 +278,7 @@ private static final long serialVersionUID = 0L;
|
||||
private com.google.protobuf.ByteString data_;
|
||||
/**
|
||||
* <code>bytes data = 4;</code>
|
||||
* @return The data.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getData() {
|
||||
return data_;
|
||||
@ -276,7 +298,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.common.TransactionType.RECORD.getNumber()) {
|
||||
if (type_ != bdledger.api.grpc.common.TransactionType.RECORD.getNumber()) {
|
||||
output.writeEnum(1, type_);
|
||||
}
|
||||
if (!from_.isEmpty()) {
|
||||
@ -297,7 +319,7 @@ private static final long serialVersionUID = 0L;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (type_ != bdchain.api.grpc.common.TransactionType.RECORD.getNumber()) {
|
||||
if (type_ != bdledger.api.grpc.common.TransactionType.RECORD.getNumber()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeEnumSize(1, type_);
|
||||
}
|
||||
@ -323,10 +345,10 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.txledger.SendTransactionRequest.Transaction)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.ledger.SendTransactionRequest.Transaction)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction other = (bdchain.api.grpc.txledger.SendTransactionRequest.Transaction) obj;
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction other = (bdledger.api.grpc.ledger.SendTransactionRequest.Transaction) obj;
|
||||
|
||||
if (type_ != other.type_) return false;
|
||||
if (!getFrom()
|
||||
@ -359,69 +381,69 @@ private static final long serialVersionUID = 0L;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest.Transaction parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionRequest.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest.Transaction parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionRequest.Transaction parseFrom(byte[] data)
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest.Transaction parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionRequest.Transaction parseFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest.Transaction parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionRequest.Transaction parseDelimitedFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest.Transaction parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parseDelimitedFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionRequest.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionRequest.Transaction parseFrom(
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest.Transaction parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -434,7 +456,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.txledger.SendTransactionRequest.Transaction prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.ledger.SendTransactionRequest.Transaction prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -450,26 +472,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.SendTransactionRequest.Transaction}
|
||||
* Protobuf type {@code bdledger.api.SendTransactionRequest.Transaction}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.SendTransactionRequest.Transaction)
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.TransactionOrBuilder {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.SendTransactionRequest.Transaction)
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.TransactionOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionRequest_Transaction_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_fieldAccessorTable
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionRequest_Transaction_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.class, bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder.class);
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.class, bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.newBuilder()
|
||||
// Construct using bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -501,17 +523,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_Transaction_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionRequest_Transaction_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.getDefaultInstance();
|
||||
public bdledger.api.grpc.ledger.SendTransactionRequest.Transaction getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction build() {
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction result = buildPartial();
|
||||
public bdledger.api.grpc.ledger.SendTransactionRequest.Transaction build() {
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -519,8 +541,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction buildPartial() {
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction result = new bdchain.api.grpc.txledger.SendTransactionRequest.Transaction(this);
|
||||
public bdledger.api.grpc.ledger.SendTransactionRequest.Transaction buildPartial() {
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction result = new bdledger.api.grpc.ledger.SendTransactionRequest.Transaction(this);
|
||||
result.type_ = type_;
|
||||
result.from_ = from_;
|
||||
result.to_ = to_;
|
||||
@ -563,16 +585,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof bdchain.api.grpc.txledger.SendTransactionRequest.Transaction) {
|
||||
return mergeFrom((bdchain.api.grpc.txledger.SendTransactionRequest.Transaction)other);
|
||||
if (other instanceof bdledger.api.grpc.ledger.SendTransactionRequest.Transaction) {
|
||||
return mergeFrom((bdledger.api.grpc.ledger.SendTransactionRequest.Transaction)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdchain.api.grpc.txledger.SendTransactionRequest.Transaction other) {
|
||||
if (other == bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.getDefaultInstance()) return this;
|
||||
public Builder mergeFrom(bdledger.api.grpc.ledger.SendTransactionRequest.Transaction other) {
|
||||
if (other == bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.getDefaultInstance()) return this;
|
||||
if (other.type_ != 0) {
|
||||
setTypeValue(other.getTypeValue());
|
||||
}
|
||||
@ -600,11 +622,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction parsedMessage = null;
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.txledger.SendTransactionRequest.Transaction) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.ledger.SendTransactionRequest.Transaction) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -616,13 +638,16 @@ private static final long serialVersionUID = 0L;
|
||||
|
||||
private int type_ = 0;
|
||||
/**
|
||||
* <code>.bdchain.api.common.TransactionType type = 1;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 1;</code>
|
||||
* @return The enum numeric value on the wire for type.
|
||||
*/
|
||||
public int getTypeValue() {
|
||||
return type_;
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.common.TransactionType type = 1;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 1;</code>
|
||||
* @param value The enum numeric value on the wire for type to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTypeValue(int value) {
|
||||
type_ = value;
|
||||
@ -630,17 +655,20 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.common.TransactionType type = 1;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 1;</code>
|
||||
* @return The type.
|
||||
*/
|
||||
public bdchain.api.grpc.common.TransactionType getType() {
|
||||
public bdledger.api.grpc.common.TransactionType getType() {
|
||||
@SuppressWarnings("deprecation")
|
||||
bdchain.api.grpc.common.TransactionType result = bdchain.api.grpc.common.TransactionType.valueOf(type_);
|
||||
return result == null ? bdchain.api.grpc.common.TransactionType.UNRECOGNIZED : result;
|
||||
bdledger.api.grpc.common.TransactionType result = bdledger.api.grpc.common.TransactionType.valueOf(type_);
|
||||
return result == null ? bdledger.api.grpc.common.TransactionType.UNRECOGNIZED : result;
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.common.TransactionType type = 1;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 1;</code>
|
||||
* @param value The type to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setType(bdchain.api.grpc.common.TransactionType value) {
|
||||
public Builder setType(bdledger.api.grpc.common.TransactionType value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
@ -650,7 +678,8 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.common.TransactionType type = 1;</code>
|
||||
* <code>.bdledger.api.TransactionType type = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearType() {
|
||||
|
||||
@ -662,12 +691,15 @@ private static final long serialVersionUID = 0L;
|
||||
private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>bytes from = 2;</code>
|
||||
* @return The from.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getFrom() {
|
||||
return from_;
|
||||
}
|
||||
/**
|
||||
* <code>bytes from = 2;</code>
|
||||
* @param value The from to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setFrom(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -680,6 +712,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>bytes from = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearFrom() {
|
||||
|
||||
@ -691,12 +724,15 @@ private static final long serialVersionUID = 0L;
|
||||
private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>bytes to = 3;</code>
|
||||
* @return The to.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getTo() {
|
||||
return to_;
|
||||
}
|
||||
/**
|
||||
* <code>bytes to = 3;</code>
|
||||
* @param value The to to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTo(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -709,6 +745,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>bytes to = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTo() {
|
||||
|
||||
@ -720,12 +757,15 @@ private static final long serialVersionUID = 0L;
|
||||
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>bytes data = 4;</code>
|
||||
* @return The data.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getData() {
|
||||
return data_;
|
||||
}
|
||||
/**
|
||||
* <code>bytes data = 4;</code>
|
||||
* @param value The data to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setData(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -738,6 +778,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>bytes data = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearData() {
|
||||
|
||||
@ -758,16 +799,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.SendTransactionRequest.Transaction)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.SendTransactionRequest.Transaction)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.SendTransactionRequest.Transaction)
|
||||
private static final bdchain.api.grpc.txledger.SendTransactionRequest.Transaction DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.SendTransactionRequest.Transaction)
|
||||
private static final bdledger.api.grpc.ledger.SendTransactionRequest.Transaction DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.SendTransactionRequest.Transaction();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.ledger.SendTransactionRequest.Transaction();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest.Transaction getDefaultInstance() {
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest.Transaction getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
@ -792,7 +833,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.ledger.SendTransactionRequest.Transaction getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
@ -802,6 +843,7 @@ private static final long serialVersionUID = 0L;
|
||||
private volatile java.lang.Object ledger_;
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
public java.lang.String getLedger() {
|
||||
java.lang.Object ref = ledger_;
|
||||
@ -817,6 +859,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getLedgerBytes() {
|
||||
@ -833,23 +876,25 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
public static final int TRANSACTION_FIELD_NUMBER = 2;
|
||||
private bdchain.api.grpc.txledger.SendTransactionRequest.Transaction transaction_;
|
||||
private bdledger.api.grpc.ledger.SendTransactionRequest.Transaction transaction_;
|
||||
/**
|
||||
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* @return Whether the transaction field is set.
|
||||
*/
|
||||
public boolean hasTransaction() {
|
||||
return transaction_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* @return The transaction.
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction getTransaction() {
|
||||
return transaction_ == null ? bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.getDefaultInstance() : transaction_;
|
||||
public bdledger.api.grpc.ledger.SendTransactionRequest.Transaction getTransaction() {
|
||||
return transaction_ == null ? bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.getDefaultInstance() : transaction_;
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.SendTransactionRequest.TransactionOrBuilder getTransactionOrBuilder() {
|
||||
public bdledger.api.grpc.ledger.SendTransactionRequest.TransactionOrBuilder getTransactionOrBuilder() {
|
||||
return getTransaction();
|
||||
}
|
||||
|
||||
@ -899,10 +944,10 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.txledger.SendTransactionRequest)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.ledger.SendTransactionRequest)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest other = (bdchain.api.grpc.txledger.SendTransactionRequest) obj;
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest other = (bdledger.api.grpc.ledger.SendTransactionRequest) obj;
|
||||
|
||||
if (!getLedger()
|
||||
.equals(other.getLedger())) return false;
|
||||
@ -933,69 +978,69 @@ private static final long serialVersionUID = 0L;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionRequest parseFrom(byte[] data)
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest parseDelimitedFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest parseFrom(
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -1008,7 +1053,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.txledger.SendTransactionRequest prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.ledger.SendTransactionRequest prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -1024,26 +1069,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.SendTransactionRequest}
|
||||
* Protobuf type {@code bdledger.api.SendTransactionRequest}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.SendTransactionRequest)
|
||||
bdchain.api.grpc.txledger.SendTransactionRequestOrBuilder {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.SendTransactionRequest)
|
||||
bdledger.api.grpc.ledger.SendTransactionRequestOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.class, bdchain.api.grpc.txledger.SendTransactionRequest.Builder.class);
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.class, bdledger.api.grpc.ledger.SendTransactionRequest.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.txledger.SendTransactionRequest.newBuilder()
|
||||
// Construct using bdledger.api.grpc.ledger.SendTransactionRequest.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -1075,17 +1120,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionRequest_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.SendTransactionRequest getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.txledger.SendTransactionRequest.getDefaultInstance();
|
||||
public bdledger.api.grpc.ledger.SendTransactionRequest getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.ledger.SendTransactionRequest.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.SendTransactionRequest build() {
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest result = buildPartial();
|
||||
public bdledger.api.grpc.ledger.SendTransactionRequest build() {
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -1093,8 +1138,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.SendTransactionRequest buildPartial() {
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest result = new bdchain.api.grpc.txledger.SendTransactionRequest(this);
|
||||
public bdledger.api.grpc.ledger.SendTransactionRequest buildPartial() {
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest result = new bdledger.api.grpc.ledger.SendTransactionRequest(this);
|
||||
result.ledger_ = ledger_;
|
||||
if (transactionBuilder_ == null) {
|
||||
result.transaction_ = transaction_;
|
||||
@ -1139,16 +1184,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof bdchain.api.grpc.txledger.SendTransactionRequest) {
|
||||
return mergeFrom((bdchain.api.grpc.txledger.SendTransactionRequest)other);
|
||||
if (other instanceof bdledger.api.grpc.ledger.SendTransactionRequest) {
|
||||
return mergeFrom((bdledger.api.grpc.ledger.SendTransactionRequest)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdchain.api.grpc.txledger.SendTransactionRequest other) {
|
||||
if (other == bdchain.api.grpc.txledger.SendTransactionRequest.getDefaultInstance()) return this;
|
||||
public Builder mergeFrom(bdledger.api.grpc.ledger.SendTransactionRequest other) {
|
||||
if (other == bdledger.api.grpc.ledger.SendTransactionRequest.getDefaultInstance()) return this;
|
||||
if (!other.getLedger().isEmpty()) {
|
||||
ledger_ = other.ledger_;
|
||||
onChanged();
|
||||
@ -1171,11 +1216,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest parsedMessage = null;
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.txledger.SendTransactionRequest) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.ledger.SendTransactionRequest) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -1188,6 +1233,7 @@ private static final long serialVersionUID = 0L;
|
||||
private java.lang.Object ledger_ = "";
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
public java.lang.String getLedger() {
|
||||
java.lang.Object ref = ledger_;
|
||||
@ -1203,6 +1249,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getLedgerBytes() {
|
||||
@ -1219,6 +1266,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @param value The ledger to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLedger(
|
||||
java.lang.String value) {
|
||||
@ -1232,6 +1281,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearLedger() {
|
||||
|
||||
@ -1241,6 +1291,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @param value The bytes for ledger to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLedgerBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
@ -1254,29 +1306,31 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
|
||||
private bdchain.api.grpc.txledger.SendTransactionRequest.Transaction transaction_;
|
||||
private bdledger.api.grpc.ledger.SendTransactionRequest.Transaction transaction_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction, bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder, bdchain.api.grpc.txledger.SendTransactionRequest.TransactionOrBuilder> transactionBuilder_;
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction, bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.Builder, bdledger.api.grpc.ledger.SendTransactionRequest.TransactionOrBuilder> transactionBuilder_;
|
||||
/**
|
||||
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* @return Whether the transaction field is set.
|
||||
*/
|
||||
public boolean hasTransaction() {
|
||||
return transactionBuilder_ != null || transaction_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* @return The transaction.
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction getTransaction() {
|
||||
public bdledger.api.grpc.ledger.SendTransactionRequest.Transaction getTransaction() {
|
||||
if (transactionBuilder_ == null) {
|
||||
return transaction_ == null ? bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.getDefaultInstance() : transaction_;
|
||||
return transaction_ == null ? bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.getDefaultInstance() : transaction_;
|
||||
} else {
|
||||
return transactionBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
*/
|
||||
public Builder setTransaction(bdchain.api.grpc.txledger.SendTransactionRequest.Transaction value) {
|
||||
public Builder setTransaction(bdledger.api.grpc.ledger.SendTransactionRequest.Transaction value) {
|
||||
if (transactionBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
@ -1290,10 +1344,10 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
*/
|
||||
public Builder setTransaction(
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder builderForValue) {
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.Builder builderForValue) {
|
||||
if (transactionBuilder_ == null) {
|
||||
transaction_ = builderForValue.build();
|
||||
onChanged();
|
||||
@ -1304,13 +1358,13 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
*/
|
||||
public Builder mergeTransaction(bdchain.api.grpc.txledger.SendTransactionRequest.Transaction value) {
|
||||
public Builder mergeTransaction(bdledger.api.grpc.ledger.SendTransactionRequest.Transaction value) {
|
||||
if (transactionBuilder_ == null) {
|
||||
if (transaction_ != null) {
|
||||
transaction_ =
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
|
||||
} else {
|
||||
transaction_ = value;
|
||||
}
|
||||
@ -1322,7 +1376,7 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
*/
|
||||
public Builder clearTransaction() {
|
||||
if (transactionBuilder_ == null) {
|
||||
@ -1336,33 +1390,33 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder getTransactionBuilder() {
|
||||
public bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.Builder getTransactionBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getTransactionFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.SendTransactionRequest.TransactionOrBuilder getTransactionOrBuilder() {
|
||||
public bdledger.api.grpc.ledger.SendTransactionRequest.TransactionOrBuilder getTransactionOrBuilder() {
|
||||
if (transactionBuilder_ != null) {
|
||||
return transactionBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return transaction_ == null ?
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.getDefaultInstance() : transaction_;
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.getDefaultInstance() : transaction_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.bdchain.api.txledger.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction, bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder, bdchain.api.grpc.txledger.SendTransactionRequest.TransactionOrBuilder>
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction, bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.Builder, bdledger.api.grpc.ledger.SendTransactionRequest.TransactionOrBuilder>
|
||||
getTransactionFieldBuilder() {
|
||||
if (transactionBuilder_ == null) {
|
||||
transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||
bdchain.api.grpc.txledger.SendTransactionRequest.Transaction, bdchain.api.grpc.txledger.SendTransactionRequest.Transaction.Builder, bdchain.api.grpc.txledger.SendTransactionRequest.TransactionOrBuilder>(
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction, bdledger.api.grpc.ledger.SendTransactionRequest.Transaction.Builder, bdledger.api.grpc.ledger.SendTransactionRequest.TransactionOrBuilder>(
|
||||
getTransaction(),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
@ -1383,16 +1437,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.SendTransactionRequest)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.SendTransactionRequest)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.SendTransactionRequest)
|
||||
private static final bdchain.api.grpc.txledger.SendTransactionRequest DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.SendTransactionRequest)
|
||||
private static final bdledger.api.grpc.ledger.SendTransactionRequest DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.SendTransactionRequest();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.ledger.SendTransactionRequest();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.SendTransactionRequest getDefaultInstance() {
|
||||
public static bdledger.api.grpc.ledger.SendTransactionRequest getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
@ -1417,7 +1471,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.SendTransactionRequest getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.ledger.SendTransactionRequest getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -0,0 +1,36 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/ledger.proto
|
||||
|
||||
package bdledger.api.grpc.ledger;
|
||||
|
||||
public interface SendTransactionRequestOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.SendTransactionRequest)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
java.lang.String getLedger();
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getLedgerBytes();
|
||||
|
||||
/**
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* @return Whether the transaction field is set.
|
||||
*/
|
||||
boolean hasTransaction();
|
||||
/**
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
* @return The transaction.
|
||||
*/
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.Transaction getTransaction();
|
||||
/**
|
||||
* <code>.bdledger.api.SendTransactionRequest.Transaction transaction = 2;</code>
|
||||
*/
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.TransactionOrBuilder getTransactionOrBuilder();
|
||||
}
|
@ -1,14 +1,14 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/ledger.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.ledger;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.SendTransactionResponse}
|
||||
* Protobuf type {@code bdledger.api.SendTransactionResponse}
|
||||
*/
|
||||
public final class SendTransactionResponse extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.SendTransactionResponse)
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.SendTransactionResponse)
|
||||
SendTransactionResponseOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use SendTransactionResponse.newBuilder() to construct.
|
||||
@ -19,6 +19,13 @@ private static final long serialVersionUID = 0L;
|
||||
hash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new SendTransactionResponse();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
@ -32,7 +39,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -69,21 +75,22 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionResponse_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionResponse_fieldAccessorTable
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.SendTransactionResponse.class, bdchain.api.grpc.txledger.SendTransactionResponse.Builder.class);
|
||||
bdledger.api.grpc.ledger.SendTransactionResponse.class, bdledger.api.grpc.ledger.SendTransactionResponse.Builder.class);
|
||||
}
|
||||
|
||||
public static final int HASH_FIELD_NUMBER = 1;
|
||||
private com.google.protobuf.ByteString hash_;
|
||||
/**
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getHash() {
|
||||
return hash_;
|
||||
@ -129,10 +136,10 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.txledger.SendTransactionResponse)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.ledger.SendTransactionResponse)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.txledger.SendTransactionResponse other = (bdchain.api.grpc.txledger.SendTransactionResponse) obj;
|
||||
bdledger.api.grpc.ledger.SendTransactionResponse other = (bdledger.api.grpc.ledger.SendTransactionResponse) obj;
|
||||
|
||||
if (!getHash()
|
||||
.equals(other.getHash())) return false;
|
||||
@ -154,69 +161,69 @@ private static final long serialVersionUID = 0L;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.SendTransactionResponse parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.SendTransactionResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionResponse parseFrom(byte[] data)
|
||||
public static bdledger.api.grpc.ledger.SendTransactionResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.SendTransactionResponse parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.ledger.SendTransactionResponse parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.ledger.SendTransactionResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionResponse parseDelimitedFrom(
|
||||
public static bdledger.api.grpc.ledger.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.txledger.SendTransactionResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.SendTransactionResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.SendTransactionResponse parseFrom(
|
||||
public static bdledger.api.grpc.ledger.SendTransactionResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -229,7 +236,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.txledger.SendTransactionResponse prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.ledger.SendTransactionResponse prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -245,26 +252,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.SendTransactionResponse}
|
||||
* Protobuf type {@code bdledger.api.SendTransactionResponse}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.txledger.SendTransactionResponse)
|
||||
bdchain.api.grpc.txledger.SendTransactionResponseOrBuilder {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.SendTransactionResponse)
|
||||
bdledger.api.grpc.ledger.SendTransactionResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionResponse_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionResponse_fieldAccessorTable
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.SendTransactionResponse.class, bdchain.api.grpc.txledger.SendTransactionResponse.Builder.class);
|
||||
bdledger.api.grpc.ledger.SendTransactionResponse.class, bdledger.api.grpc.ledger.SendTransactionResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.txledger.SendTransactionResponse.newBuilder()
|
||||
// Construct using bdledger.api.grpc.ledger.SendTransactionResponse.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -290,17 +297,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_SendTransactionResponse_descriptor;
|
||||
return bdledger.api.grpc.ledger.LedgerProto.internal_static_bdledger_api_SendTransactionResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.SendTransactionResponse getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.txledger.SendTransactionResponse.getDefaultInstance();
|
||||
public bdledger.api.grpc.ledger.SendTransactionResponse getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.ledger.SendTransactionResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.SendTransactionResponse build() {
|
||||
bdchain.api.grpc.txledger.SendTransactionResponse result = buildPartial();
|
||||
public bdledger.api.grpc.ledger.SendTransactionResponse build() {
|
||||
bdledger.api.grpc.ledger.SendTransactionResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -308,8 +315,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.SendTransactionResponse buildPartial() {
|
||||
bdchain.api.grpc.txledger.SendTransactionResponse result = new bdchain.api.grpc.txledger.SendTransactionResponse(this);
|
||||
public bdledger.api.grpc.ledger.SendTransactionResponse buildPartial() {
|
||||
bdledger.api.grpc.ledger.SendTransactionResponse result = new bdledger.api.grpc.ledger.SendTransactionResponse(this);
|
||||
result.hash_ = hash_;
|
||||
onBuilt();
|
||||
return result;
|
||||
@ -349,16 +356,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof bdchain.api.grpc.txledger.SendTransactionResponse) {
|
||||
return mergeFrom((bdchain.api.grpc.txledger.SendTransactionResponse)other);
|
||||
if (other instanceof bdledger.api.grpc.ledger.SendTransactionResponse) {
|
||||
return mergeFrom((bdledger.api.grpc.ledger.SendTransactionResponse)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdchain.api.grpc.txledger.SendTransactionResponse other) {
|
||||
if (other == bdchain.api.grpc.txledger.SendTransactionResponse.getDefaultInstance()) return this;
|
||||
public Builder mergeFrom(bdledger.api.grpc.ledger.SendTransactionResponse other) {
|
||||
if (other == bdledger.api.grpc.ledger.SendTransactionResponse.getDefaultInstance()) return this;
|
||||
if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
|
||||
setHash(other.getHash());
|
||||
}
|
||||
@ -377,11 +384,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.txledger.SendTransactionResponse parsedMessage = null;
|
||||
bdledger.api.grpc.ledger.SendTransactionResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.txledger.SendTransactionResponse) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.ledger.SendTransactionResponse) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -394,12 +401,15 @@ private static final long serialVersionUID = 0L;
|
||||
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getHash() {
|
||||
return hash_;
|
||||
}
|
||||
/**
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @param value The hash to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setHash(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -412,6 +422,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearHash() {
|
||||
|
||||
@ -432,16 +443,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.SendTransactionResponse)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.SendTransactionResponse)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.SendTransactionResponse)
|
||||
private static final bdchain.api.grpc.txledger.SendTransactionResponse DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.SendTransactionResponse)
|
||||
private static final bdledger.api.grpc.ledger.SendTransactionResponse DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.SendTransactionResponse();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.ledger.SendTransactionResponse();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.SendTransactionResponse getDefaultInstance() {
|
||||
public static bdledger.api.grpc.ledger.SendTransactionResponse getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
@ -466,7 +477,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.SendTransactionResponse getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.ledger.SendTransactionResponse getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -1,14 +1,15 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/ledger.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.ledger;
|
||||
|
||||
public interface SendTransactionResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.txledger.SendTransactionResponse)
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.SendTransactionResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
com.google.protobuf.ByteString getHash();
|
||||
}
|
@ -0,0 +1,436 @@
|
||||
package bdledger.api.grpc.ledger;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
|
||||
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
|
||||
import static io.grpc.stub.ClientCalls.futureUnaryCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
|
||||
|
||||
/**
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = "by gRPC proto compiler (version 1.27.0)",
|
||||
comments = "Source: bdledger/api/ledger.proto")
|
||||
public final class TransactionLedgerGrpc {
|
||||
|
||||
private TransactionLedgerGrpc() {}
|
||||
|
||||
public static final String SERVICE_NAME = "bdledger.api.TransactionLedger";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<bdledger.api.grpc.ledger.CreateLedgerRequest,
|
||||
bdledger.api.grpc.ledger.CreateLedgerResponse> getCreateLedgerMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "CreateLedger",
|
||||
requestType = bdledger.api.grpc.ledger.CreateLedgerRequest.class,
|
||||
responseType = bdledger.api.grpc.ledger.CreateLedgerResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<bdledger.api.grpc.ledger.CreateLedgerRequest,
|
||||
bdledger.api.grpc.ledger.CreateLedgerResponse> getCreateLedgerMethod() {
|
||||
io.grpc.MethodDescriptor<bdledger.api.grpc.ledger.CreateLedgerRequest, bdledger.api.grpc.ledger.CreateLedgerResponse> getCreateLedgerMethod;
|
||||
if ((getCreateLedgerMethod = TransactionLedgerGrpc.getCreateLedgerMethod) == null) {
|
||||
synchronized (TransactionLedgerGrpc.class) {
|
||||
if ((getCreateLedgerMethod = TransactionLedgerGrpc.getCreateLedgerMethod) == null) {
|
||||
TransactionLedgerGrpc.getCreateLedgerMethod = getCreateLedgerMethod =
|
||||
io.grpc.MethodDescriptor.<bdledger.api.grpc.ledger.CreateLedgerRequest, bdledger.api.grpc.ledger.CreateLedgerResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLedger"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.ledger.CreateLedgerRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.ledger.CreateLedgerResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new TransactionLedgerMethodDescriptorSupplier("CreateLedger"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getCreateLedgerMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<com.google.protobuf.Empty,
|
||||
bdledger.api.grpc.ledger.GetLedgersResponse> getGetLedgersMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetLedgers",
|
||||
requestType = com.google.protobuf.Empty.class,
|
||||
responseType = bdledger.api.grpc.ledger.GetLedgersResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<com.google.protobuf.Empty,
|
||||
bdledger.api.grpc.ledger.GetLedgersResponse> getGetLedgersMethod() {
|
||||
io.grpc.MethodDescriptor<com.google.protobuf.Empty, bdledger.api.grpc.ledger.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, bdledger.api.grpc.ledger.GetLedgersResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLedgers"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
com.google.protobuf.Empty.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.ledger.GetLedgersResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new TransactionLedgerMethodDescriptorSupplier("GetLedgers"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetLedgersMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<bdledger.api.grpc.ledger.SendTransactionRequest,
|
||||
bdledger.api.grpc.ledger.SendTransactionResponse> getSendTransactionMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "SendTransaction",
|
||||
requestType = bdledger.api.grpc.ledger.SendTransactionRequest.class,
|
||||
responseType = bdledger.api.grpc.ledger.SendTransactionResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<bdledger.api.grpc.ledger.SendTransactionRequest,
|
||||
bdledger.api.grpc.ledger.SendTransactionResponse> getSendTransactionMethod() {
|
||||
io.grpc.MethodDescriptor<bdledger.api.grpc.ledger.SendTransactionRequest, bdledger.api.grpc.ledger.SendTransactionResponse> getSendTransactionMethod;
|
||||
if ((getSendTransactionMethod = TransactionLedgerGrpc.getSendTransactionMethod) == null) {
|
||||
synchronized (TransactionLedgerGrpc.class) {
|
||||
if ((getSendTransactionMethod = TransactionLedgerGrpc.getSendTransactionMethod) == null) {
|
||||
TransactionLedgerGrpc.getSendTransactionMethod = getSendTransactionMethod =
|
||||
io.grpc.MethodDescriptor.<bdledger.api.grpc.ledger.SendTransactionRequest, bdledger.api.grpc.ledger.SendTransactionResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendTransaction"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.ledger.SendTransactionResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new TransactionLedgerMethodDescriptorSupplier("SendTransaction"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getSendTransactionMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static TransactionLedgerStub newStub(io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<TransactionLedgerStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<TransactionLedgerStub>() {
|
||||
@java.lang.Override
|
||||
public TransactionLedgerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new TransactionLedgerStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return TransactionLedgerStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static TransactionLedgerBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<TransactionLedgerBlockingStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<TransactionLedgerBlockingStub>() {
|
||||
@java.lang.Override
|
||||
public TransactionLedgerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new TransactionLedgerBlockingStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return TransactionLedgerBlockingStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static TransactionLedgerFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<TransactionLedgerFutureStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<TransactionLedgerFutureStub>() {
|
||||
@java.lang.Override
|
||||
public TransactionLedgerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new TransactionLedgerFutureStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return TransactionLedgerFutureStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static abstract class TransactionLedgerImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
*/
|
||||
public void createLedger(bdledger.api.grpc.ledger.CreateLedgerRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.ledger.CreateLedgerResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getCreateLedgerMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getLedgers(com.google.protobuf.Empty request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.ledger.GetLedgersResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getGetLedgersMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void sendTransaction(bdledger.api.grpc.ledger.SendTransactionRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.ledger.SendTransactionResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getSendTransactionMethod(), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getCreateLedgerMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdledger.api.grpc.ledger.CreateLedgerRequest,
|
||||
bdledger.api.grpc.ledger.CreateLedgerResponse>(
|
||||
this, METHODID_CREATE_LEDGER)))
|
||||
.addMethod(
|
||||
getGetLedgersMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
com.google.protobuf.Empty,
|
||||
bdledger.api.grpc.ledger.GetLedgersResponse>(
|
||||
this, METHODID_GET_LEDGERS)))
|
||||
.addMethod(
|
||||
getSendTransactionMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest,
|
||||
bdledger.api.grpc.ledger.SendTransactionResponse>(
|
||||
this, METHODID_SEND_TRANSACTION)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class TransactionLedgerStub extends io.grpc.stub.AbstractAsyncStub<TransactionLedgerStub> {
|
||||
private TransactionLedgerStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected TransactionLedgerStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new TransactionLedgerStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void createLedger(bdledger.api.grpc.ledger.CreateLedgerRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.ledger.CreateLedgerResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getCreateLedgerMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getLedgers(com.google.protobuf.Empty request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.ledger.GetLedgersResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getGetLedgersMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void sendTransaction(bdledger.api.grpc.ledger.SendTransactionRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.ledger.SendTransactionResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getSendTransactionMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class TransactionLedgerBlockingStub extends io.grpc.stub.AbstractBlockingStub<TransactionLedgerBlockingStub> {
|
||||
private TransactionLedgerBlockingStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected TransactionLedgerBlockingStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new TransactionLedgerBlockingStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdledger.api.grpc.ledger.CreateLedgerResponse createLedger(bdledger.api.grpc.ledger.CreateLedgerRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getCreateLedgerMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdledger.api.grpc.ledger.GetLedgersResponse getLedgers(com.google.protobuf.Empty request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetLedgersMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdledger.api.grpc.ledger.SendTransactionResponse sendTransaction(bdledger.api.grpc.ledger.SendTransactionRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getSendTransactionMethod(), getCallOptions(), request);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class TransactionLedgerFutureStub extends io.grpc.stub.AbstractFutureStub<TransactionLedgerFutureStub> {
|
||||
private TransactionLedgerFutureStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected TransactionLedgerFutureStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new TransactionLedgerFutureStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<bdledger.api.grpc.ledger.CreateLedgerResponse> createLedger(
|
||||
bdledger.api.grpc.ledger.CreateLedgerRequest request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getCreateLedgerMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<bdledger.api.grpc.ledger.GetLedgersResponse> getLedgers(
|
||||
com.google.protobuf.Empty request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getGetLedgersMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<bdledger.api.grpc.ledger.SendTransactionResponse> sendTransaction(
|
||||
bdledger.api.grpc.ledger.SendTransactionRequest request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getSendTransactionMethod(), getCallOptions()), request);
|
||||
}
|
||||
}
|
||||
|
||||
private static final int METHODID_CREATE_LEDGER = 0;
|
||||
private static final int METHODID_GET_LEDGERS = 1;
|
||||
private static final int METHODID_SEND_TRANSACTION = 2;
|
||||
|
||||
private static final class MethodHandlers<Req, Resp> implements
|
||||
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final TransactionLedgerImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(TransactionLedgerImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_CREATE_LEDGER:
|
||||
serviceImpl.createLedger((bdledger.api.grpc.ledger.CreateLedgerRequest) request,
|
||||
(io.grpc.stub.StreamObserver<bdledger.api.grpc.ledger.CreateLedgerResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_GET_LEDGERS:
|
||||
serviceImpl.getLedgers((com.google.protobuf.Empty) request,
|
||||
(io.grpc.stub.StreamObserver<bdledger.api.grpc.ledger.GetLedgersResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_SEND_TRANSACTION:
|
||||
serviceImpl.sendTransaction((bdledger.api.grpc.ledger.SendTransactionRequest) request,
|
||||
(io.grpc.stub.StreamObserver<bdledger.api.grpc.ledger.SendTransactionResponse>) responseObserver);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class TransactionLedgerBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
TransactionLedgerBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return bdledger.api.grpc.ledger.LedgerProto.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("TransactionLedger");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class TransactionLedgerFileDescriptorSupplier
|
||||
extends TransactionLedgerBaseDescriptorSupplier {
|
||||
TransactionLedgerFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class TransactionLedgerMethodDescriptorSupplier
|
||||
extends TransactionLedgerBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
TransactionLedgerMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (TransactionLedgerGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new TransactionLedgerFileDescriptorSupplier())
|
||||
.addMethod(getCreateLedgerMethod())
|
||||
.addMethod(getGetLedgersMethod())
|
||||
.addMethod(getSendTransactionMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
@ -1,14 +1,14 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/common.proto
|
||||
// source: bdledger/api/node.proto
|
||||
|
||||
package bdchain.api.grpc.common;
|
||||
package bdledger.api.grpc.node;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.common.ClientVersionResponse}
|
||||
* Protobuf type {@code bdledger.api.ClientVersionResponse}
|
||||
*/
|
||||
public final class ClientVersionResponse extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.common.ClientVersionResponse)
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.ClientVersionResponse)
|
||||
ClientVersionResponseOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use ClientVersionResponse.newBuilder() to construct.
|
||||
@ -19,6 +19,13 @@ private static final long serialVersionUID = 0L;
|
||||
version_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new ClientVersionResponse();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
@ -32,7 +39,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -70,15 +76,15 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.common.CommonProto.internal_static_bdchain_api_common_ClientVersionResponse_descriptor;
|
||||
return bdledger.api.grpc.node.NodeProto.internal_static_bdledger_api_ClientVersionResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.common.CommonProto.internal_static_bdchain_api_common_ClientVersionResponse_fieldAccessorTable
|
||||
return bdledger.api.grpc.node.NodeProto.internal_static_bdledger_api_ClientVersionResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.common.ClientVersionResponse.class, bdchain.api.grpc.common.ClientVersionResponse.Builder.class);
|
||||
bdledger.api.grpc.node.ClientVersionResponse.class, bdledger.api.grpc.node.ClientVersionResponse.Builder.class);
|
||||
}
|
||||
|
||||
public static final int VERSION_FIELD_NUMBER = 1;
|
||||
@ -89,6 +95,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>string version = 1;</code>
|
||||
* @return The version.
|
||||
*/
|
||||
public java.lang.String getVersion() {
|
||||
java.lang.Object ref = version_;
|
||||
@ -108,6 +115,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>string version = 1;</code>
|
||||
* @return The bytes for version.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getVersionBytes() {
|
||||
@ -162,10 +170,10 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.common.ClientVersionResponse)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.node.ClientVersionResponse)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.common.ClientVersionResponse other = (bdchain.api.grpc.common.ClientVersionResponse) obj;
|
||||
bdledger.api.grpc.node.ClientVersionResponse other = (bdledger.api.grpc.node.ClientVersionResponse) obj;
|
||||
|
||||
if (!getVersion()
|
||||
.equals(other.getVersion())) return false;
|
||||
@ -187,69 +195,69 @@ private static final long serialVersionUID = 0L;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
|
||||
public static bdledger.api.grpc.node.ClientVersionResponse parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
|
||||
public static bdledger.api.grpc.node.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.common.ClientVersionResponse parseFrom(
|
||||
public static bdledger.api.grpc.node.ClientVersionResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
|
||||
public static bdledger.api.grpc.node.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.common.ClientVersionResponse parseFrom(byte[] data)
|
||||
public static bdledger.api.grpc.node.ClientVersionResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
|
||||
public static bdledger.api.grpc.node.ClientVersionResponse parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.node.ClientVersionResponse parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
|
||||
public static bdledger.api.grpc.node.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.common.ClientVersionResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.node.ClientVersionResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.common.ClientVersionResponse parseDelimitedFrom(
|
||||
public static bdledger.api.grpc.node.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.common.ClientVersionResponse parseFrom(
|
||||
public static bdledger.api.grpc.node.ClientVersionResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.common.ClientVersionResponse parseFrom(
|
||||
public static bdledger.api.grpc.node.ClientVersionResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -262,7 +270,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.common.ClientVersionResponse prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.node.ClientVersionResponse prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -278,26 +286,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.common.ClientVersionResponse}
|
||||
* Protobuf type {@code bdledger.api.ClientVersionResponse}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.common.ClientVersionResponse)
|
||||
bdchain.api.grpc.common.ClientVersionResponseOrBuilder {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.ClientVersionResponse)
|
||||
bdledger.api.grpc.node.ClientVersionResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.common.CommonProto.internal_static_bdchain_api_common_ClientVersionResponse_descriptor;
|
||||
return bdledger.api.grpc.node.NodeProto.internal_static_bdledger_api_ClientVersionResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.common.CommonProto.internal_static_bdchain_api_common_ClientVersionResponse_fieldAccessorTable
|
||||
return bdledger.api.grpc.node.NodeProto.internal_static_bdledger_api_ClientVersionResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.common.ClientVersionResponse.class, bdchain.api.grpc.common.ClientVersionResponse.Builder.class);
|
||||
bdledger.api.grpc.node.ClientVersionResponse.class, bdledger.api.grpc.node.ClientVersionResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.common.ClientVersionResponse.newBuilder()
|
||||
// Construct using bdledger.api.grpc.node.ClientVersionResponse.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -323,17 +331,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.common.CommonProto.internal_static_bdchain_api_common_ClientVersionResponse_descriptor;
|
||||
return bdledger.api.grpc.node.NodeProto.internal_static_bdledger_api_ClientVersionResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.common.ClientVersionResponse getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.common.ClientVersionResponse.getDefaultInstance();
|
||||
public bdledger.api.grpc.node.ClientVersionResponse getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.node.ClientVersionResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.common.ClientVersionResponse build() {
|
||||
bdchain.api.grpc.common.ClientVersionResponse result = buildPartial();
|
||||
public bdledger.api.grpc.node.ClientVersionResponse build() {
|
||||
bdledger.api.grpc.node.ClientVersionResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -341,8 +349,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.common.ClientVersionResponse buildPartial() {
|
||||
bdchain.api.grpc.common.ClientVersionResponse result = new bdchain.api.grpc.common.ClientVersionResponse(this);
|
||||
public bdledger.api.grpc.node.ClientVersionResponse buildPartial() {
|
||||
bdledger.api.grpc.node.ClientVersionResponse result = new bdledger.api.grpc.node.ClientVersionResponse(this);
|
||||
result.version_ = version_;
|
||||
onBuilt();
|
||||
return result;
|
||||
@ -382,16 +390,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof bdchain.api.grpc.common.ClientVersionResponse) {
|
||||
return mergeFrom((bdchain.api.grpc.common.ClientVersionResponse)other);
|
||||
if (other instanceof bdledger.api.grpc.node.ClientVersionResponse) {
|
||||
return mergeFrom((bdledger.api.grpc.node.ClientVersionResponse)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdchain.api.grpc.common.ClientVersionResponse other) {
|
||||
if (other == bdchain.api.grpc.common.ClientVersionResponse.getDefaultInstance()) return this;
|
||||
public Builder mergeFrom(bdledger.api.grpc.node.ClientVersionResponse other) {
|
||||
if (other == bdledger.api.grpc.node.ClientVersionResponse.getDefaultInstance()) return this;
|
||||
if (!other.getVersion().isEmpty()) {
|
||||
version_ = other.version_;
|
||||
onChanged();
|
||||
@ -411,11 +419,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.common.ClientVersionResponse parsedMessage = null;
|
||||
bdledger.api.grpc.node.ClientVersionResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.common.ClientVersionResponse) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.node.ClientVersionResponse) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -432,6 +440,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>string version = 1;</code>
|
||||
* @return The version.
|
||||
*/
|
||||
public java.lang.String getVersion() {
|
||||
java.lang.Object ref = version_;
|
||||
@ -451,6 +460,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>string version = 1;</code>
|
||||
* @return The bytes for version.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getVersionBytes() {
|
||||
@ -471,6 +481,8 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>string version = 1;</code>
|
||||
* @param value The version to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setVersion(
|
||||
java.lang.String value) {
|
||||
@ -488,6 +500,7 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>string version = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearVersion() {
|
||||
|
||||
@ -501,6 +514,8 @@ private static final long serialVersionUID = 0L;
|
||||
* </pre>
|
||||
*
|
||||
* <code>string version = 1;</code>
|
||||
* @param value The bytes for version to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setVersionBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
@ -526,16 +541,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.common.ClientVersionResponse)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.ClientVersionResponse)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.common.ClientVersionResponse)
|
||||
private static final bdchain.api.grpc.common.ClientVersionResponse DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.ClientVersionResponse)
|
||||
private static final bdledger.api.grpc.node.ClientVersionResponse DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.common.ClientVersionResponse();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.node.ClientVersionResponse();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.common.ClientVersionResponse getDefaultInstance() {
|
||||
public static bdledger.api.grpc.node.ClientVersionResponse getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
@ -560,7 +575,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.common.ClientVersionResponse getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.node.ClientVersionResponse getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/common.proto
|
||||
// source: bdledger/api/node.proto
|
||||
|
||||
package bdchain.api.grpc.common;
|
||||
package bdledger.api.grpc.node;
|
||||
|
||||
public interface ClientVersionResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.common.ClientVersionResponse)
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.ClientVersionResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
@ -13,6 +13,7 @@ public interface ClientVersionResponseOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>string version = 1;</code>
|
||||
* @return The version.
|
||||
*/
|
||||
java.lang.String getVersion();
|
||||
/**
|
||||
@ -21,6 +22,7 @@ public interface ClientVersionResponseOrBuilder extends
|
||||
* </pre>
|
||||
*
|
||||
* <code>string version = 1;</code>
|
||||
* @return The bytes for version.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getVersionBytes();
|
288
src/main/java/bdledger/api/grpc/node/NodeGrpc.java
Normal file
288
src/main/java/bdledger/api/grpc/node/NodeGrpc.java
Normal file
@ -0,0 +1,288 @@
|
||||
package bdledger.api.grpc.node;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
|
||||
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
|
||||
import static io.grpc.stub.ClientCalls.futureUnaryCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
|
||||
|
||||
/**
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = "by gRPC proto compiler (version 1.27.0)",
|
||||
comments = "Source: bdledger/api/node.proto")
|
||||
public final class NodeGrpc {
|
||||
|
||||
private NodeGrpc() {}
|
||||
|
||||
public static final String SERVICE_NAME = "bdledger.api.Node";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<com.google.protobuf.Empty,
|
||||
bdledger.api.grpc.node.ClientVersionResponse> getClientVersionMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "ClientVersion",
|
||||
requestType = com.google.protobuf.Empty.class,
|
||||
responseType = bdledger.api.grpc.node.ClientVersionResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<com.google.protobuf.Empty,
|
||||
bdledger.api.grpc.node.ClientVersionResponse> getClientVersionMethod() {
|
||||
io.grpc.MethodDescriptor<com.google.protobuf.Empty, bdledger.api.grpc.node.ClientVersionResponse> getClientVersionMethod;
|
||||
if ((getClientVersionMethod = NodeGrpc.getClientVersionMethod) == null) {
|
||||
synchronized (NodeGrpc.class) {
|
||||
if ((getClientVersionMethod = NodeGrpc.getClientVersionMethod) == null) {
|
||||
NodeGrpc.getClientVersionMethod = getClientVersionMethod =
|
||||
io.grpc.MethodDescriptor.<com.google.protobuf.Empty, bdledger.api.grpc.node.ClientVersionResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ClientVersion"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
com.google.protobuf.Empty.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.node.ClientVersionResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new NodeMethodDescriptorSupplier("ClientVersion"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getClientVersionMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static NodeStub newStub(io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<NodeStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<NodeStub>() {
|
||||
@java.lang.Override
|
||||
public NodeStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new NodeStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return NodeStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static NodeBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<NodeBlockingStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<NodeBlockingStub>() {
|
||||
@java.lang.Override
|
||||
public NodeBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new NodeBlockingStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return NodeBlockingStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static NodeFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<NodeFutureStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<NodeFutureStub>() {
|
||||
@java.lang.Override
|
||||
public NodeFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new NodeFutureStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return NodeFutureStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static abstract class NodeImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
*/
|
||||
public void clientVersion(com.google.protobuf.Empty request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.node.ClientVersionResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getClientVersionMethod(), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getClientVersionMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
com.google.protobuf.Empty,
|
||||
bdledger.api.grpc.node.ClientVersionResponse>(
|
||||
this, METHODID_CLIENT_VERSION)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class NodeStub extends io.grpc.stub.AbstractAsyncStub<NodeStub> {
|
||||
private NodeStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected NodeStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new NodeStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void clientVersion(com.google.protobuf.Empty request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.node.ClientVersionResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getClientVersionMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class NodeBlockingStub extends io.grpc.stub.AbstractBlockingStub<NodeBlockingStub> {
|
||||
private NodeBlockingStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected NodeBlockingStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new NodeBlockingStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdledger.api.grpc.node.ClientVersionResponse clientVersion(com.google.protobuf.Empty request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getClientVersionMethod(), getCallOptions(), request);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class NodeFutureStub extends io.grpc.stub.AbstractFutureStub<NodeFutureStub> {
|
||||
private NodeFutureStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected NodeFutureStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new NodeFutureStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<bdledger.api.grpc.node.ClientVersionResponse> clientVersion(
|
||||
com.google.protobuf.Empty request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getClientVersionMethod(), getCallOptions()), request);
|
||||
}
|
||||
}
|
||||
|
||||
private static final int METHODID_CLIENT_VERSION = 0;
|
||||
|
||||
private static final class MethodHandlers<Req, Resp> implements
|
||||
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final NodeImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(NodeImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_CLIENT_VERSION:
|
||||
serviceImpl.clientVersion((com.google.protobuf.Empty) request,
|
||||
(io.grpc.stub.StreamObserver<bdledger.api.grpc.node.ClientVersionResponse>) responseObserver);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class NodeBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
NodeBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return bdledger.api.grpc.node.NodeProto.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("Node");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class NodeFileDescriptorSupplier
|
||||
extends NodeBaseDescriptorSupplier {
|
||||
NodeFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class NodeMethodDescriptorSupplier
|
||||
extends NodeBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
NodeMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (NodeGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new NodeFileDescriptorSupplier())
|
||||
.addMethod(getClientVersionMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
55
src/main/java/bdledger/api/grpc/node/NodeProto.java
Normal file
55
src/main/java/bdledger/api/grpc/node/NodeProto.java
Normal file
@ -0,0 +1,55 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/node.proto
|
||||
|
||||
package bdledger.api.grpc.node;
|
||||
|
||||
public final class NodeProto {
|
||||
private NodeProto() {}
|
||||
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_bdledger_api_ClientVersionResponse_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_ClientVersionResponse_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\027bdledger/api/node.proto\022\014bdledger.api\032" +
|
||||
"\033google/protobuf/empty.proto\"(\n\025ClientVe" +
|
||||
"rsionResponse\022\017\n\007version\030\001 \001(\t2T\n\004Node\022L" +
|
||||
"\n\rClientVersion\022\026.google.protobuf.Empty\032" +
|
||||
"#.bdledger.api.ClientVersionResponseBM\n\026" +
|
||||
"bdledger.api.grpc.nodeB\tNodeProtoP\001Z&bdw" +
|
||||
"are.org/bdledger/pkg/api/grpc/protob\006pro" +
|
||||
"to3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
com.google.protobuf.EmptyProto.getDescriptor(),
|
||||
});
|
||||
internal_static_bdledger_api_ClientVersionResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_bdledger_api_ClientVersionResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_ClientVersionResponse_descriptor,
|
||||
new java.lang.String[] { "Version", });
|
||||
com.google.protobuf.EmptyProto.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
548
src/main/java/bdledger/api/grpc/query/BlockFilter.java
Normal file
548
src/main/java/bdledger/api/grpc/query/BlockFilter.java
Normal file
@ -0,0 +1,548 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdledger.api.BlockFilter}
|
||||
*/
|
||||
public final class BlockFilter extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.BlockFilter)
|
||||
BlockFilterOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use BlockFilter.newBuilder() to construct.
|
||||
private BlockFilter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private BlockFilter() {
|
||||
hash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new BlockFilter();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private BlockFilter(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
this();
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
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: {
|
||||
|
||||
hash_ = input.readBytes();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
|
||||
timestamp_ = input.readInt64();
|
||||
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 bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_BlockFilter_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_BlockFilter_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdledger.api.grpc.query.BlockFilter.class, bdledger.api.grpc.query.BlockFilter.Builder.class);
|
||||
}
|
||||
|
||||
public static final int HASH_FIELD_NUMBER = 1;
|
||||
private com.google.protobuf.ByteString hash_;
|
||||
/**
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getHash() {
|
||||
return hash_;
|
||||
}
|
||||
|
||||
public static final int TIMESTAMP_FIELD_NUMBER = 2;
|
||||
private long timestamp_;
|
||||
/**
|
||||
* <code>int64 timestamp = 2;</code>
|
||||
* @return The timestamp.
|
||||
*/
|
||||
public long getTimestamp() {
|
||||
return timestamp_;
|
||||
}
|
||||
|
||||
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 (!hash_.isEmpty()) {
|
||||
output.writeBytes(1, hash_);
|
||||
}
|
||||
if (timestamp_ != 0L) {
|
||||
output.writeInt64(2, timestamp_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!hash_.isEmpty()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBytesSize(1, hash_);
|
||||
}
|
||||
if (timestamp_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt64Size(2, timestamp_);
|
||||
}
|
||||
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 bdledger.api.grpc.query.BlockFilter)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdledger.api.grpc.query.BlockFilter other = (bdledger.api.grpc.query.BlockFilter) obj;
|
||||
|
||||
if (!getHash()
|
||||
.equals(other.getHash())) return false;
|
||||
if (getTimestamp()
|
||||
!= other.getTimestamp()) 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) + HASH_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getHash().hashCode();
|
||||
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getTimestamp());
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdledger.api.grpc.query.BlockFilter parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdledger.api.grpc.query.BlockFilter parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdledger.api.grpc.query.BlockFilter parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdledger.api.grpc.query.BlockFilter parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdledger.api.grpc.query.BlockFilter parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdledger.api.grpc.query.BlockFilter parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdledger.api.grpc.query.BlockFilter parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdledger.api.grpc.query.BlockFilter 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 bdledger.api.grpc.query.BlockFilter parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdledger.api.grpc.query.BlockFilter 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 bdledger.api.grpc.query.BlockFilter parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdledger.api.grpc.query.BlockFilter 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(bdledger.api.grpc.query.BlockFilter 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 bdledger.api.BlockFilter}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.BlockFilter)
|
||||
bdledger.api.grpc.query.BlockFilterOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_BlockFilter_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_BlockFilter_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdledger.api.grpc.query.BlockFilter.class, bdledger.api.grpc.query.BlockFilter.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdledger.api.grpc.query.BlockFilter.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();
|
||||
hash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
|
||||
timestamp_ = 0L;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_BlockFilter_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.BlockFilter getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.query.BlockFilter.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.BlockFilter build() {
|
||||
bdledger.api.grpc.query.BlockFilter result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.BlockFilter buildPartial() {
|
||||
bdledger.api.grpc.query.BlockFilter result = new bdledger.api.grpc.query.BlockFilter(this);
|
||||
result.hash_ = hash_;
|
||||
result.timestamp_ = timestamp_;
|
||||
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 bdledger.api.grpc.query.BlockFilter) {
|
||||
return mergeFrom((bdledger.api.grpc.query.BlockFilter)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdledger.api.grpc.query.BlockFilter other) {
|
||||
if (other == bdledger.api.grpc.query.BlockFilter.getDefaultInstance()) return this;
|
||||
if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
|
||||
setHash(other.getHash());
|
||||
}
|
||||
if (other.getTimestamp() != 0L) {
|
||||
setTimestamp(other.getTimestamp());
|
||||
}
|
||||
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 {
|
||||
bdledger.api.grpc.query.BlockFilter parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdledger.api.grpc.query.BlockFilter) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getHash() {
|
||||
return hash_;
|
||||
}
|
||||
/**
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @param value The hash to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setHash(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
hash_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearHash() {
|
||||
|
||||
hash_ = getDefaultInstance().getHash();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private long timestamp_ ;
|
||||
/**
|
||||
* <code>int64 timestamp = 2;</code>
|
||||
* @return The timestamp.
|
||||
*/
|
||||
public long getTimestamp() {
|
||||
return timestamp_;
|
||||
}
|
||||
/**
|
||||
* <code>int64 timestamp = 2;</code>
|
||||
* @param value The timestamp to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTimestamp(long value) {
|
||||
|
||||
timestamp_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int64 timestamp = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTimestamp() {
|
||||
|
||||
timestamp_ = 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:bdledger.api.BlockFilter)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.BlockFilter)
|
||||
private static final bdledger.api.grpc.query.BlockFilter DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.query.BlockFilter();
|
||||
}
|
||||
|
||||
public static bdledger.api.grpc.query.BlockFilter getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<BlockFilter>
|
||||
PARSER = new com.google.protobuf.AbstractParser<BlockFilter>() {
|
||||
@java.lang.Override
|
||||
public BlockFilter parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new BlockFilter(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<BlockFilter> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<BlockFilter> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.BlockFilter getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,21 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface BlockFilterOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.BlockFilter)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
com.google.protobuf.ByteString getHash();
|
||||
|
||||
/**
|
||||
* <code>int64 timestamp = 2;</code>
|
||||
* @return The timestamp.
|
||||
*/
|
||||
long getTimestamp();
|
||||
}
|
1043
src/main/java/bdledger/api/grpc/query/BlocksRequest.java
Normal file
1043
src/main/java/bdledger/api/grpc/query/BlocksRequest.java
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,61 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface BlocksRequestOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.BlocksRequest)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
java.lang.String getLedger();
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getLedgerBytes();
|
||||
|
||||
/**
|
||||
* <code>repeated .bdledger.api.BlockFilter filters = 2;</code>
|
||||
*/
|
||||
java.util.List<bdledger.api.grpc.query.BlockFilter>
|
||||
getFiltersList();
|
||||
/**
|
||||
* <code>repeated .bdledger.api.BlockFilter filters = 2;</code>
|
||||
*/
|
||||
bdledger.api.grpc.query.BlockFilter getFilters(int index);
|
||||
/**
|
||||
* <code>repeated .bdledger.api.BlockFilter filters = 2;</code>
|
||||
*/
|
||||
int getFiltersCount();
|
||||
/**
|
||||
* <code>repeated .bdledger.api.BlockFilter filters = 2;</code>
|
||||
*/
|
||||
java.util.List<? extends bdledger.api.grpc.query.BlockFilterOrBuilder>
|
||||
getFiltersOrBuilderList();
|
||||
/**
|
||||
* <code>repeated .bdledger.api.BlockFilter filters = 2;</code>
|
||||
*/
|
||||
bdledger.api.grpc.query.BlockFilterOrBuilder getFiltersOrBuilder(
|
||||
int index);
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* required
|
||||
* </pre>
|
||||
*
|
||||
* <code>int64 start_timestamp = 3;</code>
|
||||
* @return The startTimestamp.
|
||||
*/
|
||||
long getStartTimestamp();
|
||||
|
||||
/**
|
||||
* <code>int64 end_timestamp = 4;</code>
|
||||
* @return The endTimestamp.
|
||||
*/
|
||||
long getEndTimestamp();
|
||||
}
|
@ -1,21 +1,28 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.acchain.BlockNumberResponse}
|
||||
* Protobuf type {@code bdledger.api.CountBlocksResponse}
|
||||
*/
|
||||
public final class BlockNumberResponse extends
|
||||
public final class CountBlocksResponse extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.BlockNumberResponse)
|
||||
BlockNumberResponseOrBuilder {
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.CountBlocksResponse)
|
||||
CountBlocksResponseOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use BlockNumberResponse.newBuilder() to construct.
|
||||
private BlockNumberResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
// Use CountBlocksResponse.newBuilder() to construct.
|
||||
private CountBlocksResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private BlockNumberResponse() {
|
||||
private CountBlocksResponse() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new CountBlocksResponse();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@ -23,7 +30,7 @@ private static final long serialVersionUID = 0L;
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private BlockNumberResponse(
|
||||
private CountBlocksResponse(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
@ -31,7 +38,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -44,7 +50,7 @@ private static final long serialVersionUID = 0L;
|
||||
break;
|
||||
case 8: {
|
||||
|
||||
blockNumber_ = input.readUInt64();
|
||||
count_ = input.readUInt64();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@ -68,24 +74,25 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberResponse_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_CountBlocksResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberResponse_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_CountBlocksResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.BlockNumberResponse.class, bdchain.api.grpc.acchain.BlockNumberResponse.Builder.class);
|
||||
bdledger.api.grpc.query.CountBlocksResponse.class, bdledger.api.grpc.query.CountBlocksResponse.Builder.class);
|
||||
}
|
||||
|
||||
public static final int BLOCK_NUMBER_FIELD_NUMBER = 1;
|
||||
private long blockNumber_;
|
||||
public static final int COUNT_FIELD_NUMBER = 1;
|
||||
private long count_;
|
||||
/**
|
||||
* <code>uint64 block_number = 1;</code>
|
||||
* <code>uint64 count = 1;</code>
|
||||
* @return The count.
|
||||
*/
|
||||
public long getBlockNumber() {
|
||||
return blockNumber_;
|
||||
public long getCount() {
|
||||
return count_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@ -102,8 +109,8 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (blockNumber_ != 0L) {
|
||||
output.writeUInt64(1, blockNumber_);
|
||||
if (count_ != 0L) {
|
||||
output.writeUInt64(1, count_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@ -114,9 +121,9 @@ private static final long serialVersionUID = 0L;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (blockNumber_ != 0L) {
|
||||
if (count_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(1, blockNumber_);
|
||||
.computeUInt64Size(1, count_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@ -128,13 +135,13 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.acchain.BlockNumberResponse)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.query.CountBlocksResponse)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.acchain.BlockNumberResponse other = (bdchain.api.grpc.acchain.BlockNumberResponse) obj;
|
||||
bdledger.api.grpc.query.CountBlocksResponse other = (bdledger.api.grpc.query.CountBlocksResponse) obj;
|
||||
|
||||
if (getBlockNumber()
|
||||
!= other.getBlockNumber()) return false;
|
||||
if (getCount()
|
||||
!= other.getCount()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@ -146,77 +153,77 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + BLOCK_NUMBER_FIELD_NUMBER;
|
||||
hash = (37 * hash) + COUNT_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getBlockNumber());
|
||||
getCount());
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.CountBlocksResponse parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.CountBlocksResponse 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.acchain.BlockNumberResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.CountBlocksResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.CountBlocksResponse 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.acchain.BlockNumberResponse parseFrom(byte[] data)
|
||||
public static bdledger.api.grpc.query.CountBlocksResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.CountBlocksResponse parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.query.CountBlocksResponse parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.CountBlocksResponse 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.acchain.BlockNumberResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.query.CountBlocksResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.BlockNumberResponse parseDelimitedFrom(
|
||||
public static bdledger.api.grpc.query.CountBlocksResponse 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.acchain.BlockNumberResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.CountBlocksResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.BlockNumberResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.CountBlocksResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -229,7 +236,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.acchain.BlockNumberResponse prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.query.CountBlocksResponse prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -245,26 +252,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.acchain.BlockNumberResponse}
|
||||
* Protobuf type {@code bdledger.api.CountBlocksResponse}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.acchain.BlockNumberResponse)
|
||||
bdchain.api.grpc.acchain.BlockNumberResponseOrBuilder {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.CountBlocksResponse)
|
||||
bdledger.api.grpc.query.CountBlocksResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberResponse_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_CountBlocksResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberResponse_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_CountBlocksResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.BlockNumberResponse.class, bdchain.api.grpc.acchain.BlockNumberResponse.Builder.class);
|
||||
bdledger.api.grpc.query.CountBlocksResponse.class, bdledger.api.grpc.query.CountBlocksResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.acchain.BlockNumberResponse.newBuilder()
|
||||
// Construct using bdledger.api.grpc.query.CountBlocksResponse.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -282,7 +289,7 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
blockNumber_ = 0L;
|
||||
count_ = 0L;
|
||||
|
||||
return this;
|
||||
}
|
||||
@ -290,17 +297,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_BlockNumberResponse_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_CountBlocksResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.BlockNumberResponse getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.acchain.BlockNumberResponse.getDefaultInstance();
|
||||
public bdledger.api.grpc.query.CountBlocksResponse getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.query.CountBlocksResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.BlockNumberResponse build() {
|
||||
bdchain.api.grpc.acchain.BlockNumberResponse result = buildPartial();
|
||||
public bdledger.api.grpc.query.CountBlocksResponse build() {
|
||||
bdledger.api.grpc.query.CountBlocksResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -308,9 +315,9 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.BlockNumberResponse buildPartial() {
|
||||
bdchain.api.grpc.acchain.BlockNumberResponse result = new bdchain.api.grpc.acchain.BlockNumberResponse(this);
|
||||
result.blockNumber_ = blockNumber_;
|
||||
public bdledger.api.grpc.query.CountBlocksResponse buildPartial() {
|
||||
bdledger.api.grpc.query.CountBlocksResponse result = new bdledger.api.grpc.query.CountBlocksResponse(this);
|
||||
result.count_ = count_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@ -349,18 +356,18 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof bdchain.api.grpc.acchain.BlockNumberResponse) {
|
||||
return mergeFrom((bdchain.api.grpc.acchain.BlockNumberResponse)other);
|
||||
if (other instanceof bdledger.api.grpc.query.CountBlocksResponse) {
|
||||
return mergeFrom((bdledger.api.grpc.query.CountBlocksResponse)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
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());
|
||||
public Builder mergeFrom(bdledger.api.grpc.query.CountBlocksResponse other) {
|
||||
if (other == bdledger.api.grpc.query.CountBlocksResponse.getDefaultInstance()) return this;
|
||||
if (other.getCount() != 0L) {
|
||||
setCount(other.getCount());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
@ -377,11 +384,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.acchain.BlockNumberResponse parsedMessage = null;
|
||||
bdledger.api.grpc.query.CountBlocksResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.acchain.BlockNumberResponse) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.query.CountBlocksResponse) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -391,28 +398,32 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
|
||||
private long blockNumber_ ;
|
||||
private long count_ ;
|
||||
/**
|
||||
* <code>uint64 block_number = 1;</code>
|
||||
* <code>uint64 count = 1;</code>
|
||||
* @return The count.
|
||||
*/
|
||||
public long getBlockNumber() {
|
||||
return blockNumber_;
|
||||
public long getCount() {
|
||||
return count_;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 block_number = 1;</code>
|
||||
* <code>uint64 count = 1;</code>
|
||||
* @param value The count to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setBlockNumber(long value) {
|
||||
public Builder setCount(long value) {
|
||||
|
||||
blockNumber_ = value;
|
||||
count_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 block_number = 1;</code>
|
||||
* <code>uint64 count = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearBlockNumber() {
|
||||
public Builder clearCount() {
|
||||
|
||||
blockNumber_ = 0L;
|
||||
count_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@ -429,41 +440,41 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.acchain.BlockNumberResponse)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.CountBlocksResponse)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.acchain.BlockNumberResponse)
|
||||
private static final bdchain.api.grpc.acchain.BlockNumberResponse DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.CountBlocksResponse)
|
||||
private static final bdledger.api.grpc.query.CountBlocksResponse DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.acchain.BlockNumberResponse();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.query.CountBlocksResponse();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.acchain.BlockNumberResponse getDefaultInstance() {
|
||||
public static bdledger.api.grpc.query.CountBlocksResponse getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<BlockNumberResponse>
|
||||
PARSER = new com.google.protobuf.AbstractParser<BlockNumberResponse>() {
|
||||
private static final com.google.protobuf.Parser<CountBlocksResponse>
|
||||
PARSER = new com.google.protobuf.AbstractParser<CountBlocksResponse>() {
|
||||
@java.lang.Override
|
||||
public BlockNumberResponse parsePartialFrom(
|
||||
public CountBlocksResponse parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new BlockNumberResponse(input, extensionRegistry);
|
||||
return new CountBlocksResponse(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<BlockNumberResponse> parser() {
|
||||
public static com.google.protobuf.Parser<CountBlocksResponse> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<BlockNumberResponse> getParserForType() {
|
||||
public com.google.protobuf.Parser<CountBlocksResponse> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.BlockNumberResponse getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.query.CountBlocksResponse getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -0,0 +1,15 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface CountBlocksResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.CountBlocksResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint64 count = 1;</code>
|
||||
* @return The count.
|
||||
*/
|
||||
long getCount();
|
||||
}
|
@ -1,21 +1,28 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.BlockCountResponse}
|
||||
* Protobuf type {@code bdledger.api.CountTransactionsResponse}
|
||||
*/
|
||||
public final class BlockCountResponse extends
|
||||
public final class CountTransactionsResponse extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.BlockCountResponse)
|
||||
BlockCountResponseOrBuilder {
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.CountTransactionsResponse)
|
||||
CountTransactionsResponseOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use BlockCountResponse.newBuilder() to construct.
|
||||
private BlockCountResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
// Use CountTransactionsResponse.newBuilder() to construct.
|
||||
private CountTransactionsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private BlockCountResponse() {
|
||||
private CountTransactionsResponse() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new CountTransactionsResponse();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@ -23,7 +30,7 @@ private static final long serialVersionUID = 0L;
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private BlockCountResponse(
|
||||
private CountTransactionsResponse(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
@ -31,7 +38,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -44,7 +50,7 @@ private static final long serialVersionUID = 0L;
|
||||
break;
|
||||
case 8: {
|
||||
|
||||
blockCount_ = input.readUInt64();
|
||||
count_ = input.readUInt64();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@ -68,24 +74,25 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountResponse_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_CountTransactionsResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountResponse_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_CountTransactionsResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.BlockCountResponse.class, bdchain.api.grpc.txledger.BlockCountResponse.Builder.class);
|
||||
bdledger.api.grpc.query.CountTransactionsResponse.class, bdledger.api.grpc.query.CountTransactionsResponse.Builder.class);
|
||||
}
|
||||
|
||||
public static final int BLOCK_COUNT_FIELD_NUMBER = 1;
|
||||
private long blockCount_;
|
||||
public static final int COUNT_FIELD_NUMBER = 1;
|
||||
private long count_;
|
||||
/**
|
||||
* <code>uint64 block_count = 1;</code>
|
||||
* <code>uint64 count = 1;</code>
|
||||
* @return The count.
|
||||
*/
|
||||
public long getBlockCount() {
|
||||
return blockCount_;
|
||||
public long getCount() {
|
||||
return count_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@ -102,8 +109,8 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (blockCount_ != 0L) {
|
||||
output.writeUInt64(1, blockCount_);
|
||||
if (count_ != 0L) {
|
||||
output.writeUInt64(1, count_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@ -114,9 +121,9 @@ private static final long serialVersionUID = 0L;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (blockCount_ != 0L) {
|
||||
if (count_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(1, blockCount_);
|
||||
.computeUInt64Size(1, count_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@ -128,13 +135,13 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.txledger.BlockCountResponse)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.query.CountTransactionsResponse)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.txledger.BlockCountResponse other = (bdchain.api.grpc.txledger.BlockCountResponse) obj;
|
||||
bdledger.api.grpc.query.CountTransactionsResponse other = (bdledger.api.grpc.query.CountTransactionsResponse) obj;
|
||||
|
||||
if (getBlockCount()
|
||||
!= other.getBlockCount()) return false;
|
||||
if (getCount()
|
||||
!= other.getCount()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@ -146,77 +153,77 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + BLOCK_COUNT_FIELD_NUMBER;
|
||||
hash = (37 * hash) + COUNT_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getBlockCount());
|
||||
getCount());
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.CountTransactionsResponse parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.CountTransactionsResponse 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(
|
||||
public static bdledger.api.grpc.query.CountTransactionsResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.CountTransactionsResponse 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)
|
||||
public static bdledger.api.grpc.query.CountTransactionsResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.BlockCountResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.CountTransactionsResponse 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)
|
||||
public static bdledger.api.grpc.query.CountTransactionsResponse 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(
|
||||
public static bdledger.api.grpc.query.CountTransactionsResponse 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)
|
||||
public static bdledger.api.grpc.query.CountTransactionsResponse 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(
|
||||
public static bdledger.api.grpc.query.CountTransactionsResponse 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(
|
||||
public static bdledger.api.grpc.query.CountTransactionsResponse 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(
|
||||
public static bdledger.api.grpc.query.CountTransactionsResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -229,7 +236,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.txledger.BlockCountResponse prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.query.CountTransactionsResponse prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -245,26 +252,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.BlockCountResponse}
|
||||
* Protobuf type {@code bdledger.api.CountTransactionsResponse}
|
||||
*/
|
||||
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 {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.CountTransactionsResponse)
|
||||
bdledger.api.grpc.query.CountTransactionsResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountResponse_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_CountTransactionsResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountResponse_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_CountTransactionsResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.BlockCountResponse.class, bdchain.api.grpc.txledger.BlockCountResponse.Builder.class);
|
||||
bdledger.api.grpc.query.CountTransactionsResponse.class, bdledger.api.grpc.query.CountTransactionsResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.txledger.BlockCountResponse.newBuilder()
|
||||
// Construct using bdledger.api.grpc.query.CountTransactionsResponse.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -282,7 +289,7 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
blockCount_ = 0L;
|
||||
count_ = 0L;
|
||||
|
||||
return this;
|
||||
}
|
||||
@ -290,17 +297,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountResponse_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_CountTransactionsResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.BlockCountResponse getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.txledger.BlockCountResponse.getDefaultInstance();
|
||||
public bdledger.api.grpc.query.CountTransactionsResponse getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.query.CountTransactionsResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.BlockCountResponse build() {
|
||||
bdchain.api.grpc.txledger.BlockCountResponse result = buildPartial();
|
||||
public bdledger.api.grpc.query.CountTransactionsResponse build() {
|
||||
bdledger.api.grpc.query.CountTransactionsResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -308,9 +315,9 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@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_;
|
||||
public bdledger.api.grpc.query.CountTransactionsResponse buildPartial() {
|
||||
bdledger.api.grpc.query.CountTransactionsResponse result = new bdledger.api.grpc.query.CountTransactionsResponse(this);
|
||||
result.count_ = count_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@ -349,18 +356,18 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@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);
|
||||
if (other instanceof bdledger.api.grpc.query.CountTransactionsResponse) {
|
||||
return mergeFrom((bdledger.api.grpc.query.CountTransactionsResponse)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());
|
||||
public Builder mergeFrom(bdledger.api.grpc.query.CountTransactionsResponse other) {
|
||||
if (other == bdledger.api.grpc.query.CountTransactionsResponse.getDefaultInstance()) return this;
|
||||
if (other.getCount() != 0L) {
|
||||
setCount(other.getCount());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
@ -377,11 +384,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.txledger.BlockCountResponse parsedMessage = null;
|
||||
bdledger.api.grpc.query.CountTransactionsResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.txledger.BlockCountResponse) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.query.CountTransactionsResponse) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -391,28 +398,32 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
|
||||
private long blockCount_ ;
|
||||
private long count_ ;
|
||||
/**
|
||||
* <code>uint64 block_count = 1;</code>
|
||||
* <code>uint64 count = 1;</code>
|
||||
* @return The count.
|
||||
*/
|
||||
public long getBlockCount() {
|
||||
return blockCount_;
|
||||
public long getCount() {
|
||||
return count_;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 block_count = 1;</code>
|
||||
* <code>uint64 count = 1;</code>
|
||||
* @param value The count to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setBlockCount(long value) {
|
||||
public Builder setCount(long value) {
|
||||
|
||||
blockCount_ = value;
|
||||
count_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 block_count = 1;</code>
|
||||
* <code>uint64 count = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearBlockCount() {
|
||||
public Builder clearCount() {
|
||||
|
||||
blockCount_ = 0L;
|
||||
count_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@ -429,41 +440,41 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.BlockCountResponse)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.CountTransactionsResponse)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.BlockCountResponse)
|
||||
private static final bdchain.api.grpc.txledger.BlockCountResponse DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.CountTransactionsResponse)
|
||||
private static final bdledger.api.grpc.query.CountTransactionsResponse DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.BlockCountResponse();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.query.CountTransactionsResponse();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.BlockCountResponse getDefaultInstance() {
|
||||
public static bdledger.api.grpc.query.CountTransactionsResponse getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<BlockCountResponse>
|
||||
PARSER = new com.google.protobuf.AbstractParser<BlockCountResponse>() {
|
||||
private static final com.google.protobuf.Parser<CountTransactionsResponse>
|
||||
PARSER = new com.google.protobuf.AbstractParser<CountTransactionsResponse>() {
|
||||
@java.lang.Override
|
||||
public BlockCountResponse parsePartialFrom(
|
||||
public CountTransactionsResponse parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new BlockCountResponse(input, extensionRegistry);
|
||||
return new CountTransactionsResponse(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<BlockCountResponse> parser() {
|
||||
public static com.google.protobuf.Parser<CountTransactionsResponse> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<BlockCountResponse> getParserForType() {
|
||||
public com.google.protobuf.Parser<CountTransactionsResponse> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.BlockCountResponse getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.query.CountTransactionsResponse getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -0,0 +1,15 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface CountTransactionsResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.CountTransactionsResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint64 count = 1;</code>
|
||||
* @return The count.
|
||||
*/
|
||||
long getCount();
|
||||
}
|
@ -1,14 +1,14 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.acchain.GetBlockByHashRequest}
|
||||
* Protobuf type {@code bdledger.api.GetBlockByHashRequest}
|
||||
*/
|
||||
public final class GetBlockByHashRequest extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.GetBlockByHashRequest)
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.GetBlockByHashRequest)
|
||||
GetBlockByHashRequestOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GetBlockByHashRequest.newBuilder() to construct.
|
||||
@ -20,6 +20,13 @@ private static final long serialVersionUID = 0L;
|
||||
hash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new GetBlockByHashRequest();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
@ -33,7 +40,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -81,21 +87,22 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByHashRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetBlockByHashRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByHashRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetBlockByHashRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.GetBlockByHashRequest.class, bdchain.api.grpc.acchain.GetBlockByHashRequest.Builder.class);
|
||||
bdledger.api.grpc.query.GetBlockByHashRequest.class, bdledger.api.grpc.query.GetBlockByHashRequest.Builder.class);
|
||||
}
|
||||
|
||||
public static final int LEDGER_FIELD_NUMBER = 1;
|
||||
private volatile java.lang.Object ledger_;
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
public java.lang.String getLedger() {
|
||||
java.lang.Object ref = ledger_;
|
||||
@ -111,6 +118,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getLedgerBytes() {
|
||||
@ -130,6 +138,7 @@ private static final long serialVersionUID = 0L;
|
||||
private com.google.protobuf.ByteString hash_;
|
||||
/**
|
||||
* <code>bytes hash = 2;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getHash() {
|
||||
return hash_;
|
||||
@ -139,6 +148,7 @@ private static final long serialVersionUID = 0L;
|
||||
private boolean fullTransaction_;
|
||||
/**
|
||||
* <code>bool full_transaction = 3;</code>
|
||||
* @return The fullTransaction.
|
||||
*/
|
||||
public boolean getFullTransaction() {
|
||||
return fullTransaction_;
|
||||
@ -197,10 +207,10 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.acchain.GetBlockByHashRequest)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.query.GetBlockByHashRequest)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.acchain.GetBlockByHashRequest other = (bdchain.api.grpc.acchain.GetBlockByHashRequest) obj;
|
||||
bdledger.api.grpc.query.GetBlockByHashRequest other = (bdledger.api.grpc.query.GetBlockByHashRequest) obj;
|
||||
|
||||
if (!getLedger()
|
||||
.equals(other.getLedger())) return false;
|
||||
@ -231,69 +241,69 @@ private static final long serialVersionUID = 0L;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashRequest parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.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.acchain.GetBlockByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashRequest parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.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.acchain.GetBlockByHashRequest parseFrom(byte[] data)
|
||||
public static bdledger.api.grpc.query.GetBlockByHashRequest parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashRequest parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.query.GetBlockByHashRequest parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.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.acchain.GetBlockByHashRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.query.GetBlockByHashRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseDelimitedFrom(
|
||||
public static bdledger.api.grpc.query.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.acchain.GetBlockByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -306,7 +316,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.acchain.GetBlockByHashRequest prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.query.GetBlockByHashRequest prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -322,26 +332,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.acchain.GetBlockByHashRequest}
|
||||
* Protobuf type {@code bdledger.api.GetBlockByHashRequest}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.acchain.GetBlockByHashRequest)
|
||||
bdchain.api.grpc.acchain.GetBlockByHashRequestOrBuilder {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.GetBlockByHashRequest)
|
||||
bdledger.api.grpc.query.GetBlockByHashRequestOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByHashRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetBlockByHashRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByHashRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetBlockByHashRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.GetBlockByHashRequest.class, bdchain.api.grpc.acchain.GetBlockByHashRequest.Builder.class);
|
||||
bdledger.api.grpc.query.GetBlockByHashRequest.class, bdledger.api.grpc.query.GetBlockByHashRequest.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.acchain.GetBlockByHashRequest.newBuilder()
|
||||
// Construct using bdledger.api.grpc.query.GetBlockByHashRequest.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -371,17 +381,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByHashRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetBlockByHashRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetBlockByHashRequest getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.acchain.GetBlockByHashRequest.getDefaultInstance();
|
||||
public bdledger.api.grpc.query.GetBlockByHashRequest getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.query.GetBlockByHashRequest.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetBlockByHashRequest build() {
|
||||
bdchain.api.grpc.acchain.GetBlockByHashRequest result = buildPartial();
|
||||
public bdledger.api.grpc.query.GetBlockByHashRequest build() {
|
||||
bdledger.api.grpc.query.GetBlockByHashRequest result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -389,8 +399,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetBlockByHashRequest buildPartial() {
|
||||
bdchain.api.grpc.acchain.GetBlockByHashRequest result = new bdchain.api.grpc.acchain.GetBlockByHashRequest(this);
|
||||
public bdledger.api.grpc.query.GetBlockByHashRequest buildPartial() {
|
||||
bdledger.api.grpc.query.GetBlockByHashRequest result = new bdledger.api.grpc.query.GetBlockByHashRequest(this);
|
||||
result.ledger_ = ledger_;
|
||||
result.hash_ = hash_;
|
||||
result.fullTransaction_ = fullTransaction_;
|
||||
@ -432,16 +442,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof bdchain.api.grpc.acchain.GetBlockByHashRequest) {
|
||||
return mergeFrom((bdchain.api.grpc.acchain.GetBlockByHashRequest)other);
|
||||
if (other instanceof bdledger.api.grpc.query.GetBlockByHashRequest) {
|
||||
return mergeFrom((bdledger.api.grpc.query.GetBlockByHashRequest)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdchain.api.grpc.acchain.GetBlockByHashRequest other) {
|
||||
if (other == bdchain.api.grpc.acchain.GetBlockByHashRequest.getDefaultInstance()) return this;
|
||||
public Builder mergeFrom(bdledger.api.grpc.query.GetBlockByHashRequest other) {
|
||||
if (other == bdledger.api.grpc.query.GetBlockByHashRequest.getDefaultInstance()) return this;
|
||||
if (!other.getLedger().isEmpty()) {
|
||||
ledger_ = other.ledger_;
|
||||
onChanged();
|
||||
@ -467,11 +477,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.acchain.GetBlockByHashRequest parsedMessage = null;
|
||||
bdledger.api.grpc.query.GetBlockByHashRequest parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.acchain.GetBlockByHashRequest) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.query.GetBlockByHashRequest) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -484,6 +494,7 @@ private static final long serialVersionUID = 0L;
|
||||
private java.lang.Object ledger_ = "";
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
public java.lang.String getLedger() {
|
||||
java.lang.Object ref = ledger_;
|
||||
@ -499,6 +510,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getLedgerBytes() {
|
||||
@ -515,6 +527,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @param value The ledger to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLedger(
|
||||
java.lang.String value) {
|
||||
@ -528,6 +542,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearLedger() {
|
||||
|
||||
@ -537,6 +552,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @param value The bytes for ledger to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLedgerBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
@ -553,12 +570,15 @@ private static final long serialVersionUID = 0L;
|
||||
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>bytes hash = 2;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getHash() {
|
||||
return hash_;
|
||||
}
|
||||
/**
|
||||
* <code>bytes hash = 2;</code>
|
||||
* @param value The hash to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setHash(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -571,6 +591,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>bytes hash = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearHash() {
|
||||
|
||||
@ -582,12 +603,15 @@ private static final long serialVersionUID = 0L;
|
||||
private boolean fullTransaction_ ;
|
||||
/**
|
||||
* <code>bool full_transaction = 3;</code>
|
||||
* @return The fullTransaction.
|
||||
*/
|
||||
public boolean getFullTransaction() {
|
||||
return fullTransaction_;
|
||||
}
|
||||
/**
|
||||
* <code>bool full_transaction = 3;</code>
|
||||
* @param value The fullTransaction to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setFullTransaction(boolean value) {
|
||||
|
||||
@ -597,6 +621,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>bool full_transaction = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearFullTransaction() {
|
||||
|
||||
@ -617,16 +642,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.acchain.GetBlockByHashRequest)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.GetBlockByHashRequest)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.acchain.GetBlockByHashRequest)
|
||||
private static final bdchain.api.grpc.acchain.GetBlockByHashRequest DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.GetBlockByHashRequest)
|
||||
private static final bdledger.api.grpc.query.GetBlockByHashRequest DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.acchain.GetBlockByHashRequest();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.query.GetBlockByHashRequest();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.acchain.GetBlockByHashRequest getDefaultInstance() {
|
||||
public static bdledger.api.grpc.query.GetBlockByHashRequest getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
@ -651,7 +676,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetBlockByHashRequest getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.query.GetBlockByHashRequest getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -1,29 +1,33 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface GetBlockByHashRequestOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.GetBlockByHashRequest)
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.GetBlockByHashRequest)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
java.lang.String getLedger();
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getLedgerBytes();
|
||||
|
||||
/**
|
||||
* <code>bytes hash = 2;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
com.google.protobuf.ByteString getHash();
|
||||
|
||||
/**
|
||||
* <code>bool full_transaction = 3;</code>
|
||||
* @return The fullTransaction.
|
||||
*/
|
||||
boolean getFullTransaction();
|
||||
}
|
@ -1,22 +1,28 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.BlockCountRequest}
|
||||
* Protobuf type {@code bdledger.api.GetBlockByHashResponse}
|
||||
*/
|
||||
public final class BlockCountRequest extends
|
||||
public final class GetBlockByHashResponse extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.BlockCountRequest)
|
||||
BlockCountRequestOrBuilder {
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.GetBlockByHashResponse)
|
||||
GetBlockByHashResponseOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use BlockCountRequest.newBuilder() to construct.
|
||||
private BlockCountRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
// Use GetBlockByHashResponse.newBuilder() to construct.
|
||||
private GetBlockByHashResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private BlockCountRequest() {
|
||||
ledger_ = "";
|
||||
private GetBlockByHashResponse() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new GetBlockByHashResponse();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@ -24,7 +30,7 @@ private static final long serialVersionUID = 0L;
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private BlockCountRequest(
|
||||
private GetBlockByHashResponse(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
@ -32,7 +38,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -44,9 +49,16 @@ private static final long serialVersionUID = 0L;
|
||||
done = true;
|
||||
break;
|
||||
case 10: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
bdledger.api.grpc.common.Block.Builder subBuilder = null;
|
||||
if (block_ != null) {
|
||||
subBuilder = block_.toBuilder();
|
||||
}
|
||||
block_ = input.readMessage(bdledger.api.grpc.common.Block.parser(), extensionRegistry);
|
||||
if (subBuilder != null) {
|
||||
subBuilder.mergeFrom(block_);
|
||||
block_ = subBuilder.buildPartial();
|
||||
}
|
||||
|
||||
ledger_ = s;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@ -70,49 +82,38 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetBlockByHashResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetBlockByHashResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.BlockCountRequest.class, bdchain.api.grpc.txledger.BlockCountRequest.Builder.class);
|
||||
bdledger.api.grpc.query.GetBlockByHashResponse.class, bdledger.api.grpc.query.GetBlockByHashResponse.Builder.class);
|
||||
}
|
||||
|
||||
public static final int LEDGER_FIELD_NUMBER = 1;
|
||||
private volatile java.lang.Object ledger_;
|
||||
public static final int BLOCK_FIELD_NUMBER = 1;
|
||||
private bdledger.api.grpc.common.Block block_;
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
* @return Whether the block field is set.
|
||||
*/
|
||||
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;
|
||||
}
|
||||
public boolean hasBlock() {
|
||||
return block_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
* @return The block.
|
||||
*/
|
||||
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 bdledger.api.grpc.common.Block getBlock() {
|
||||
return block_ == null ? bdledger.api.grpc.common.Block.getDefaultInstance() : block_;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.BlockOrBuilder getBlockOrBuilder() {
|
||||
return getBlock();
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@ -129,8 +130,8 @@ private static final long serialVersionUID = 0L;
|
||||
@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 (block_ != null) {
|
||||
output.writeMessage(1, getBlock());
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@ -141,8 +142,9 @@ private static final long serialVersionUID = 0L;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!getLedgerBytes().isEmpty()) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ledger_);
|
||||
if (block_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, getBlock());
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@ -154,13 +156,16 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.txledger.BlockCountRequest)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.query.GetBlockByHashResponse)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.txledger.BlockCountRequest other = (bdchain.api.grpc.txledger.BlockCountRequest) obj;
|
||||
bdledger.api.grpc.query.GetBlockByHashResponse other = (bdledger.api.grpc.query.GetBlockByHashResponse) obj;
|
||||
|
||||
if (!getLedger()
|
||||
.equals(other.getLedger())) return false;
|
||||
if (hasBlock() != other.hasBlock()) return false;
|
||||
if (hasBlock()) {
|
||||
if (!getBlock()
|
||||
.equals(other.getBlock())) return false;
|
||||
}
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@ -172,76 +177,78 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + LEDGER_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getLedger().hashCode();
|
||||
if (hasBlock()) {
|
||||
hash = (37 * hash) + BLOCK_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getBlock().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashResponse parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashResponse 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(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashResponse 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)
|
||||
public static bdledger.api.grpc.query.GetBlockByHashResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.BlockCountRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashResponse 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)
|
||||
public static bdledger.api.grpc.query.GetBlockByHashResponse 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(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashResponse 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)
|
||||
public static bdledger.api.grpc.query.GetBlockByHashResponse 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(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashResponse 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(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashResponse 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(
|
||||
public static bdledger.api.grpc.query.GetBlockByHashResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -254,7 +261,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.txledger.BlockCountRequest prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.query.GetBlockByHashResponse prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -270,26 +277,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.BlockCountRequest}
|
||||
* Protobuf type {@code bdledger.api.GetBlockByHashResponse}
|
||||
*/
|
||||
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 {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.GetBlockByHashResponse)
|
||||
bdledger.api.grpc.query.GetBlockByHashResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetBlockByHashResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_BlockCountRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetBlockByHashResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.BlockCountRequest.class, bdchain.api.grpc.txledger.BlockCountRequest.Builder.class);
|
||||
bdledger.api.grpc.query.GetBlockByHashResponse.class, bdledger.api.grpc.query.GetBlockByHashResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.txledger.BlockCountRequest.newBuilder()
|
||||
// Construct using bdledger.api.grpc.query.GetBlockByHashResponse.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -307,25 +314,29 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
ledger_ = "";
|
||||
|
||||
if (blockBuilder_ == null) {
|
||||
block_ = null;
|
||||
} else {
|
||||
block_ = null;
|
||||
blockBuilder_ = null;
|
||||
}
|
||||
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;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetBlockByHashResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.BlockCountRequest getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.txledger.BlockCountRequest.getDefaultInstance();
|
||||
public bdledger.api.grpc.query.GetBlockByHashResponse getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.query.GetBlockByHashResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.BlockCountRequest build() {
|
||||
bdchain.api.grpc.txledger.BlockCountRequest result = buildPartial();
|
||||
public bdledger.api.grpc.query.GetBlockByHashResponse build() {
|
||||
bdledger.api.grpc.query.GetBlockByHashResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -333,9 +344,13 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@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_;
|
||||
public bdledger.api.grpc.query.GetBlockByHashResponse buildPartial() {
|
||||
bdledger.api.grpc.query.GetBlockByHashResponse result = new bdledger.api.grpc.query.GetBlockByHashResponse(this);
|
||||
if (blockBuilder_ == null) {
|
||||
result.block_ = block_;
|
||||
} else {
|
||||
result.block_ = blockBuilder_.build();
|
||||
}
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@ -374,19 +389,18 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@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);
|
||||
if (other instanceof bdledger.api.grpc.query.GetBlockByHashResponse) {
|
||||
return mergeFrom((bdledger.api.grpc.query.GetBlockByHashResponse)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();
|
||||
public Builder mergeFrom(bdledger.api.grpc.query.GetBlockByHashResponse other) {
|
||||
if (other == bdledger.api.grpc.query.GetBlockByHashResponse.getDefaultInstance()) return this;
|
||||
if (other.hasBlock()) {
|
||||
mergeBlock(other.getBlock());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
@ -403,11 +417,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.txledger.BlockCountRequest parsedMessage = null;
|
||||
bdledger.api.grpc.query.GetBlockByHashResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.txledger.BlockCountRequest) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.query.GetBlockByHashResponse) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -417,74 +431,124 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object ledger_ = "";
|
||||
private bdledger.api.grpc.common.Block block_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
bdledger.api.grpc.common.Block, bdledger.api.grpc.common.Block.Builder, bdledger.api.grpc.common.BlockOrBuilder> blockBuilder_;
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
* @return Whether the block field is set.
|
||||
*/
|
||||
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;
|
||||
public boolean hasBlock() {
|
||||
return blockBuilder_ != null || block_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
* @return The block.
|
||||
*/
|
||||
public bdledger.api.grpc.common.Block getBlock() {
|
||||
if (blockBuilder_ == null) {
|
||||
return block_ == null ? bdledger.api.grpc.common.Block.getDefaultInstance() : block_;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
return blockBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* <code>.bdledger.api.Block block = 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) {
|
||||
public Builder setBlock(bdledger.api.grpc.common.Block value) {
|
||||
if (blockBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
ledger_ = value;
|
||||
block_ = value;
|
||||
onChanged();
|
||||
} else {
|
||||
blockBuilder_.setMessage(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
*/
|
||||
public Builder clearLedger() {
|
||||
|
||||
ledger_ = getDefaultInstance().getLedger();
|
||||
public Builder setBlock(
|
||||
bdledger.api.grpc.common.Block.Builder builderForValue) {
|
||||
if (blockBuilder_ == null) {
|
||||
block_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
blockBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
*/
|
||||
public Builder setLedgerBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
public Builder mergeBlock(bdledger.api.grpc.common.Block value) {
|
||||
if (blockBuilder_ == null) {
|
||||
if (block_ != null) {
|
||||
block_ =
|
||||
bdledger.api.grpc.common.Block.newBuilder(block_).mergeFrom(value).buildPartial();
|
||||
} else {
|
||||
block_ = value;
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
ledger_ = value;
|
||||
onChanged();
|
||||
} else {
|
||||
blockBuilder_.mergeFrom(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
*/
|
||||
public Builder clearBlock() {
|
||||
if (blockBuilder_ == null) {
|
||||
block_ = null;
|
||||
onChanged();
|
||||
} else {
|
||||
block_ = null;
|
||||
blockBuilder_ = null;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.Block.Builder getBlockBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getBlockFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.BlockOrBuilder getBlockOrBuilder() {
|
||||
if (blockBuilder_ != null) {
|
||||
return blockBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return block_ == null ?
|
||||
bdledger.api.grpc.common.Block.getDefaultInstance() : block_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
bdledger.api.grpc.common.Block, bdledger.api.grpc.common.Block.Builder, bdledger.api.grpc.common.BlockOrBuilder>
|
||||
getBlockFieldBuilder() {
|
||||
if (blockBuilder_ == null) {
|
||||
blockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||
bdledger.api.grpc.common.Block, bdledger.api.grpc.common.Block.Builder, bdledger.api.grpc.common.BlockOrBuilder>(
|
||||
getBlock(),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
block_ = null;
|
||||
}
|
||||
return blockBuilder_;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@ -498,41 +562,41 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.BlockCountRequest)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.GetBlockByHashResponse)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.BlockCountRequest)
|
||||
private static final bdchain.api.grpc.txledger.BlockCountRequest DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.GetBlockByHashResponse)
|
||||
private static final bdledger.api.grpc.query.GetBlockByHashResponse DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.BlockCountRequest();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.query.GetBlockByHashResponse();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.BlockCountRequest getDefaultInstance() {
|
||||
public static bdledger.api.grpc.query.GetBlockByHashResponse getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<BlockCountRequest>
|
||||
PARSER = new com.google.protobuf.AbstractParser<BlockCountRequest>() {
|
||||
private static final com.google.protobuf.Parser<GetBlockByHashResponse>
|
||||
PARSER = new com.google.protobuf.AbstractParser<GetBlockByHashResponse>() {
|
||||
@java.lang.Override
|
||||
public BlockCountRequest parsePartialFrom(
|
||||
public GetBlockByHashResponse parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new BlockCountRequest(input, extensionRegistry);
|
||||
return new GetBlockByHashResponse(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<BlockCountRequest> parser() {
|
||||
public static com.google.protobuf.Parser<GetBlockByHashResponse> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<BlockCountRequest> getParserForType() {
|
||||
public com.google.protobuf.Parser<GetBlockByHashResponse> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.BlockCountRequest getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.query.GetBlockByHashResponse getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -0,0 +1,24 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface GetBlockByHashResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.GetBlockByHashResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
* @return Whether the block field is set.
|
||||
*/
|
||||
boolean hasBlock();
|
||||
/**
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
* @return The block.
|
||||
*/
|
||||
bdledger.api.grpc.common.Block getBlock();
|
||||
/**
|
||||
* <code>.bdledger.api.Block block = 1;</code>
|
||||
*/
|
||||
bdledger.api.grpc.common.BlockOrBuilder getBlockOrBuilder();
|
||||
}
|
@ -1,14 +1,14 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/tx_ledger.proto
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdchain.api.grpc.txledger;
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.GetBlocksResponse}
|
||||
* Protobuf type {@code bdledger.api.GetBlocksResponse}
|
||||
*/
|
||||
public final class GetBlocksResponse extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.txledger.GetBlocksResponse)
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.GetBlocksResponse)
|
||||
GetBlocksResponseOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GetBlocksResponse.newBuilder() to construct.
|
||||
@ -19,6 +19,13 @@ private static final long serialVersionUID = 0L;
|
||||
blocks_ = java.util.Collections.emptyList();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new GetBlocksResponse();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
@ -45,11 +52,21 @@ private static final long serialVersionUID = 0L;
|
||||
break;
|
||||
case 10: {
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
blocks_ = new java.util.ArrayList<bdchain.api.grpc.txledger.Block>();
|
||||
blocks_ = new java.util.ArrayList<bdledger.api.grpc.common.Block>();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
}
|
||||
blocks_.add(
|
||||
input.readMessage(bdchain.api.grpc.txledger.Block.parser(), extensionRegistry));
|
||||
input.readMessage(bdledger.api.grpc.common.Block.parser(), extensionRegistry));
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
|
||||
startTimestamp_ = input.readInt64();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
|
||||
endTimestamp_ = input.readInt64();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@ -76,52 +93,72 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksResponse_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_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
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetBlocksResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.GetBlocksResponse.class, bdchain.api.grpc.txledger.GetBlocksResponse.Builder.class);
|
||||
bdledger.api.grpc.query.GetBlocksResponse.class, bdledger.api.grpc.query.GetBlocksResponse.Builder.class);
|
||||
}
|
||||
|
||||
public static final int BLOCKS_FIELD_NUMBER = 1;
|
||||
private java.util.List<bdchain.api.grpc.txledger.Block> blocks_;
|
||||
private java.util.List<bdledger.api.grpc.common.Block> blocks_;
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public java.util.List<bdchain.api.grpc.txledger.Block> getBlocksList() {
|
||||
public java.util.List<bdledger.api.grpc.common.Block> getBlocksList() {
|
||||
return blocks_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public java.util.List<? extends bdchain.api.grpc.txledger.BlockOrBuilder>
|
||||
public java.util.List<? extends bdledger.api.grpc.common.BlockOrBuilder>
|
||||
getBlocksOrBuilderList() {
|
||||
return blocks_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public int getBlocksCount() {
|
||||
return blocks_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.Block getBlocks(int index) {
|
||||
public bdledger.api.grpc.common.Block getBlocks(int index) {
|
||||
return blocks_.get(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.BlockOrBuilder getBlocksOrBuilder(
|
||||
public bdledger.api.grpc.common.BlockOrBuilder getBlocksOrBuilder(
|
||||
int index) {
|
||||
return blocks_.get(index);
|
||||
}
|
||||
|
||||
public static final int START_TIMESTAMP_FIELD_NUMBER = 2;
|
||||
private long startTimestamp_;
|
||||
/**
|
||||
* <code>int64 start_timestamp = 2;</code>
|
||||
* @return The startTimestamp.
|
||||
*/
|
||||
public long getStartTimestamp() {
|
||||
return startTimestamp_;
|
||||
}
|
||||
|
||||
public static final int END_TIMESTAMP_FIELD_NUMBER = 3;
|
||||
private long endTimestamp_;
|
||||
/**
|
||||
* <code>int64 end_timestamp = 3;</code>
|
||||
* @return The endTimestamp.
|
||||
*/
|
||||
public long getEndTimestamp() {
|
||||
return endTimestamp_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@ -139,6 +176,12 @@ private static final long serialVersionUID = 0L;
|
||||
for (int i = 0; i < blocks_.size(); i++) {
|
||||
output.writeMessage(1, blocks_.get(i));
|
||||
}
|
||||
if (startTimestamp_ != 0L) {
|
||||
output.writeInt64(2, startTimestamp_);
|
||||
}
|
||||
if (endTimestamp_ != 0L) {
|
||||
output.writeInt64(3, endTimestamp_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@ -152,6 +195,14 @@ private static final long serialVersionUID = 0L;
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, blocks_.get(i));
|
||||
}
|
||||
if (startTimestamp_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt64Size(2, startTimestamp_);
|
||||
}
|
||||
if (endTimestamp_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt64Size(3, endTimestamp_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
@ -162,13 +213,17 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.txledger.GetBlocksResponse)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.query.GetBlocksResponse)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.txledger.GetBlocksResponse other = (bdchain.api.grpc.txledger.GetBlocksResponse) obj;
|
||||
bdledger.api.grpc.query.GetBlocksResponse other = (bdledger.api.grpc.query.GetBlocksResponse) obj;
|
||||
|
||||
if (!getBlocksList()
|
||||
.equals(other.getBlocksList())) return false;
|
||||
if (getStartTimestamp()
|
||||
!= other.getStartTimestamp()) return false;
|
||||
if (getEndTimestamp()
|
||||
!= other.getEndTimestamp()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@ -184,74 +239,80 @@ private static final long serialVersionUID = 0L;
|
||||
hash = (37 * hash) + BLOCKS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getBlocksList().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + START_TIMESTAMP_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getStartTimestamp());
|
||||
hash = (37 * hash) + END_TIMESTAMP_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getEndTimestamp());
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.GetBlocksResponse parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.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(
|
||||
public static bdledger.api.grpc.query.GetBlocksResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.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)
|
||||
public static bdledger.api.grpc.query.GetBlocksResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.txledger.GetBlocksResponse parseFrom(
|
||||
public static bdledger.api.grpc.query.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)
|
||||
public static bdledger.api.grpc.query.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(
|
||||
public static bdledger.api.grpc.query.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)
|
||||
public static bdledger.api.grpc.query.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(
|
||||
public static bdledger.api.grpc.query.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(
|
||||
public static bdledger.api.grpc.query.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(
|
||||
public static bdledger.api.grpc.query.GetBlocksResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -264,7 +325,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.txledger.GetBlocksResponse prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.query.GetBlocksResponse prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -280,26 +341,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.txledger.GetBlocksResponse}
|
||||
* Protobuf type {@code bdledger.api.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 {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.GetBlocksResponse)
|
||||
bdledger.api.grpc.query.GetBlocksResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.txledger.TransactionLedgerProto.internal_static_bdchain_api_txledger_GetBlocksResponse_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_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
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetBlocksResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.txledger.GetBlocksResponse.class, bdchain.api.grpc.txledger.GetBlocksResponse.Builder.class);
|
||||
bdledger.api.grpc.query.GetBlocksResponse.class, bdledger.api.grpc.query.GetBlocksResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.txledger.GetBlocksResponse.newBuilder()
|
||||
// Construct using bdledger.api.grpc.query.GetBlocksResponse.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -324,23 +385,27 @@ private static final long serialVersionUID = 0L;
|
||||
} else {
|
||||
blocksBuilder_.clear();
|
||||
}
|
||||
startTimestamp_ = 0L;
|
||||
|
||||
endTimestamp_ = 0L;
|
||||
|
||||
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;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetBlocksResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.GetBlocksResponse getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.txledger.GetBlocksResponse.getDefaultInstance();
|
||||
public bdledger.api.grpc.query.GetBlocksResponse getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.query.GetBlocksResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.GetBlocksResponse build() {
|
||||
bdchain.api.grpc.txledger.GetBlocksResponse result = buildPartial();
|
||||
public bdledger.api.grpc.query.GetBlocksResponse build() {
|
||||
bdledger.api.grpc.query.GetBlocksResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -348,8 +413,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.GetBlocksResponse buildPartial() {
|
||||
bdchain.api.grpc.txledger.GetBlocksResponse result = new bdchain.api.grpc.txledger.GetBlocksResponse(this);
|
||||
public bdledger.api.grpc.query.GetBlocksResponse buildPartial() {
|
||||
bdledger.api.grpc.query.GetBlocksResponse result = new bdledger.api.grpc.query.GetBlocksResponse(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (blocksBuilder_ == null) {
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
@ -360,6 +425,8 @@ private static final long serialVersionUID = 0L;
|
||||
} else {
|
||||
result.blocks_ = blocksBuilder_.build();
|
||||
}
|
||||
result.startTimestamp_ = startTimestamp_;
|
||||
result.endTimestamp_ = endTimestamp_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@ -398,16 +465,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@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);
|
||||
if (other instanceof bdledger.api.grpc.query.GetBlocksResponse) {
|
||||
return mergeFrom((bdledger.api.grpc.query.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;
|
||||
public Builder mergeFrom(bdledger.api.grpc.query.GetBlocksResponse other) {
|
||||
if (other == bdledger.api.grpc.query.GetBlocksResponse.getDefaultInstance()) return this;
|
||||
if (blocksBuilder_ == null) {
|
||||
if (!other.blocks_.isEmpty()) {
|
||||
if (blocks_.isEmpty()) {
|
||||
@ -434,6 +501,12 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (other.getStartTimestamp() != 0L) {
|
||||
setStartTimestamp(other.getStartTimestamp());
|
||||
}
|
||||
if (other.getEndTimestamp() != 0L) {
|
||||
setEndTimestamp(other.getEndTimestamp());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@ -449,11 +522,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.txledger.GetBlocksResponse parsedMessage = null;
|
||||
bdledger.api.grpc.query.GetBlocksResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.txledger.GetBlocksResponse) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.query.GetBlocksResponse) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -464,22 +537,22 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private java.util.List<bdchain.api.grpc.txledger.Block> blocks_ =
|
||||
private java.util.List<bdledger.api.grpc.common.Block> blocks_ =
|
||||
java.util.Collections.emptyList();
|
||||
private void ensureBlocksIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
blocks_ = new java.util.ArrayList<bdchain.api.grpc.txledger.Block>(blocks_);
|
||||
blocks_ = new java.util.ArrayList<bdledger.api.grpc.common.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_;
|
||||
bdledger.api.grpc.common.Block, bdledger.api.grpc.common.Block.Builder, bdledger.api.grpc.common.BlockOrBuilder> blocksBuilder_;
|
||||
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public java.util.List<bdchain.api.grpc.txledger.Block> getBlocksList() {
|
||||
public java.util.List<bdledger.api.grpc.common.Block> getBlocksList() {
|
||||
if (blocksBuilder_ == null) {
|
||||
return java.util.Collections.unmodifiableList(blocks_);
|
||||
} else {
|
||||
@ -487,7 +560,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public int getBlocksCount() {
|
||||
if (blocksBuilder_ == null) {
|
||||
@ -497,9 +570,9 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.Block getBlocks(int index) {
|
||||
public bdledger.api.grpc.common.Block getBlocks(int index) {
|
||||
if (blocksBuilder_ == null) {
|
||||
return blocks_.get(index);
|
||||
} else {
|
||||
@ -507,10 +580,10 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public Builder setBlocks(
|
||||
int index, bdchain.api.grpc.txledger.Block value) {
|
||||
int index, bdledger.api.grpc.common.Block value) {
|
||||
if (blocksBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
@ -524,10 +597,10 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public Builder setBlocks(
|
||||
int index, bdchain.api.grpc.txledger.Block.Builder builderForValue) {
|
||||
int index, bdledger.api.grpc.common.Block.Builder builderForValue) {
|
||||
if (blocksBuilder_ == null) {
|
||||
ensureBlocksIsMutable();
|
||||
blocks_.set(index, builderForValue.build());
|
||||
@ -538,9 +611,9 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public Builder addBlocks(bdchain.api.grpc.txledger.Block value) {
|
||||
public Builder addBlocks(bdledger.api.grpc.common.Block value) {
|
||||
if (blocksBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
@ -554,10 +627,10 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public Builder addBlocks(
|
||||
int index, bdchain.api.grpc.txledger.Block value) {
|
||||
int index, bdledger.api.grpc.common.Block value) {
|
||||
if (blocksBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
@ -571,10 +644,10 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public Builder addBlocks(
|
||||
bdchain.api.grpc.txledger.Block.Builder builderForValue) {
|
||||
bdledger.api.grpc.common.Block.Builder builderForValue) {
|
||||
if (blocksBuilder_ == null) {
|
||||
ensureBlocksIsMutable();
|
||||
blocks_.add(builderForValue.build());
|
||||
@ -585,10 +658,10 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public Builder addBlocks(
|
||||
int index, bdchain.api.grpc.txledger.Block.Builder builderForValue) {
|
||||
int index, bdledger.api.grpc.common.Block.Builder builderForValue) {
|
||||
if (blocksBuilder_ == null) {
|
||||
ensureBlocksIsMutable();
|
||||
blocks_.add(index, builderForValue.build());
|
||||
@ -599,10 +672,10 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public Builder addAllBlocks(
|
||||
java.lang.Iterable<? extends bdchain.api.grpc.txledger.Block> values) {
|
||||
java.lang.Iterable<? extends bdledger.api.grpc.common.Block> values) {
|
||||
if (blocksBuilder_ == null) {
|
||||
ensureBlocksIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
@ -614,7 +687,7 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public Builder clearBlocks() {
|
||||
if (blocksBuilder_ == null) {
|
||||
@ -627,7 +700,7 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public Builder removeBlocks(int index) {
|
||||
if (blocksBuilder_ == null) {
|
||||
@ -640,16 +713,16 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.Block.Builder getBlocksBuilder(
|
||||
public bdledger.api.grpc.common.Block.Builder getBlocksBuilder(
|
||||
int index) {
|
||||
return getBlocksFieldBuilder().getBuilder(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.BlockOrBuilder getBlocksOrBuilder(
|
||||
public bdledger.api.grpc.common.BlockOrBuilder getBlocksOrBuilder(
|
||||
int index) {
|
||||
if (blocksBuilder_ == null) {
|
||||
return blocks_.get(index); } else {
|
||||
@ -657,9 +730,9 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public java.util.List<? extends bdchain.api.grpc.txledger.BlockOrBuilder>
|
||||
public java.util.List<? extends bdledger.api.grpc.common.BlockOrBuilder>
|
||||
getBlocksOrBuilderList() {
|
||||
if (blocksBuilder_ != null) {
|
||||
return blocksBuilder_.getMessageOrBuilderList();
|
||||
@ -668,33 +741,33 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.Block.Builder addBlocksBuilder() {
|
||||
public bdledger.api.grpc.common.Block.Builder addBlocksBuilder() {
|
||||
return getBlocksFieldBuilder().addBuilder(
|
||||
bdchain.api.grpc.txledger.Block.getDefaultInstance());
|
||||
bdledger.api.grpc.common.Block.getDefaultInstance());
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public bdchain.api.grpc.txledger.Block.Builder addBlocksBuilder(
|
||||
public bdledger.api.grpc.common.Block.Builder addBlocksBuilder(
|
||||
int index) {
|
||||
return getBlocksFieldBuilder().addBuilder(
|
||||
index, bdchain.api.grpc.txledger.Block.getDefaultInstance());
|
||||
index, bdledger.api.grpc.common.Block.getDefaultInstance());
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdchain.api.txledger.Block blocks = 1;</code>
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
public java.util.List<bdchain.api.grpc.txledger.Block.Builder>
|
||||
public java.util.List<bdledger.api.grpc.common.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>
|
||||
bdledger.api.grpc.common.Block, bdledger.api.grpc.common.Block.Builder, bdledger.api.grpc.common.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>(
|
||||
bdledger.api.grpc.common.Block, bdledger.api.grpc.common.Block.Builder, bdledger.api.grpc.common.BlockOrBuilder>(
|
||||
blocks_,
|
||||
((bitField0_ & 0x00000001) != 0),
|
||||
getParentForChildren(),
|
||||
@ -703,6 +776,66 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
return blocksBuilder_;
|
||||
}
|
||||
|
||||
private long startTimestamp_ ;
|
||||
/**
|
||||
* <code>int64 start_timestamp = 2;</code>
|
||||
* @return The startTimestamp.
|
||||
*/
|
||||
public long getStartTimestamp() {
|
||||
return startTimestamp_;
|
||||
}
|
||||
/**
|
||||
* <code>int64 start_timestamp = 2;</code>
|
||||
* @param value The startTimestamp to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setStartTimestamp(long value) {
|
||||
|
||||
startTimestamp_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int64 start_timestamp = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearStartTimestamp() {
|
||||
|
||||
startTimestamp_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private long endTimestamp_ ;
|
||||
/**
|
||||
* <code>int64 end_timestamp = 3;</code>
|
||||
* @return The endTimestamp.
|
||||
*/
|
||||
public long getEndTimestamp() {
|
||||
return endTimestamp_;
|
||||
}
|
||||
/**
|
||||
* <code>int64 end_timestamp = 3;</code>
|
||||
* @param value The endTimestamp to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setEndTimestamp(long value) {
|
||||
|
||||
endTimestamp_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int64 end_timestamp = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearEndTimestamp() {
|
||||
|
||||
endTimestamp_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@ -716,16 +849,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.txledger.GetBlocksResponse)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.GetBlocksResponse)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.txledger.GetBlocksResponse)
|
||||
private static final bdchain.api.grpc.txledger.GetBlocksResponse DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.GetBlocksResponse)
|
||||
private static final bdledger.api.grpc.query.GetBlocksResponse DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.txledger.GetBlocksResponse();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.query.GetBlocksResponse();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.txledger.GetBlocksResponse getDefaultInstance() {
|
||||
public static bdledger.api.grpc.query.GetBlocksResponse getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
@ -750,7 +883,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.txledger.GetBlocksResponse getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.query.GetBlocksResponse getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -0,0 +1,45 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface GetBlocksResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.GetBlocksResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
java.util.List<bdledger.api.grpc.common.Block>
|
||||
getBlocksList();
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
bdledger.api.grpc.common.Block getBlocks(int index);
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
int getBlocksCount();
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
java.util.List<? extends bdledger.api.grpc.common.BlockOrBuilder>
|
||||
getBlocksOrBuilderList();
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Block blocks = 1;</code>
|
||||
*/
|
||||
bdledger.api.grpc.common.BlockOrBuilder getBlocksOrBuilder(
|
||||
int index);
|
||||
|
||||
/**
|
||||
* <code>int64 start_timestamp = 2;</code>
|
||||
* @return The startTimestamp.
|
||||
*/
|
||||
long getStartTimestamp();
|
||||
|
||||
/**
|
||||
* <code>int64 end_timestamp = 3;</code>
|
||||
* @return The endTimestamp.
|
||||
*/
|
||||
long getEndTimestamp();
|
||||
}
|
@ -1,14 +1,14 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest}
|
||||
* Protobuf type {@code bdledger.api.GetTransactionByBlockHashAndIndexRequest}
|
||||
*/
|
||||
public final class GetTransactionByBlockHashAndIndexRequest extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest)
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.GetTransactionByBlockHashAndIndexRequest)
|
||||
GetTransactionByBlockHashAndIndexRequestOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GetTransactionByBlockHashAndIndexRequest.newBuilder() to construct.
|
||||
@ -20,6 +20,13 @@ private static final long serialVersionUID = 0L;
|
||||
blockHash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new GetTransactionByBlockHashAndIndexRequest();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
@ -33,7 +40,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -81,21 +87,22 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByBlockHashAndIndexRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.class, bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.Builder.class);
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest.class, bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest.Builder.class);
|
||||
}
|
||||
|
||||
public static final int LEDGER_FIELD_NUMBER = 1;
|
||||
private volatile java.lang.Object ledger_;
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
public java.lang.String getLedger() {
|
||||
java.lang.Object ref = ledger_;
|
||||
@ -111,6 +118,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getLedgerBytes() {
|
||||
@ -130,6 +138,7 @@ private static final long serialVersionUID = 0L;
|
||||
private com.google.protobuf.ByteString blockHash_;
|
||||
/**
|
||||
* <code>bytes block_hash = 2;</code>
|
||||
* @return The blockHash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getBlockHash() {
|
||||
return blockHash_;
|
||||
@ -139,6 +148,7 @@ private static final long serialVersionUID = 0L;
|
||||
private int index_;
|
||||
/**
|
||||
* <code>uint32 index = 3;</code>
|
||||
* @return The index.
|
||||
*/
|
||||
public int getIndex() {
|
||||
return index_;
|
||||
@ -197,10 +207,10 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest other = (bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest) obj;
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest other = (bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest) obj;
|
||||
|
||||
if (!getLedger()
|
||||
.equals(other.getLedger())) return false;
|
||||
@ -230,69 +240,69 @@ private static final long serialVersionUID = 0L;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.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.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.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.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(byte[] data)
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.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.acchain.GetTransactionByBlockHashAndIndexRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseDelimitedFrom(
|
||||
public static bdledger.api.grpc.query.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.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -305,7 +315,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -321,26 +331,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest}
|
||||
* Protobuf type {@code bdledger.api.GetTransactionByBlockHashAndIndexRequest}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest)
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequestOrBuilder {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.GetTransactionByBlockHashAndIndexRequest)
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequestOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByBlockHashAndIndexRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.class, bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.Builder.class);
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest.class, bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.newBuilder()
|
||||
// Construct using bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -370,17 +380,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByBlockHashAndIndexRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByBlockHashAndIndexRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.getDefaultInstance();
|
||||
public bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest build() {
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest result = buildPartial();
|
||||
public bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest build() {
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -388,8 +398,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest buildPartial() {
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest result = new bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest(this);
|
||||
public bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest buildPartial() {
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest result = new bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest(this);
|
||||
result.ledger_ = ledger_;
|
||||
result.blockHash_ = blockHash_;
|
||||
result.index_ = index_;
|
||||
@ -431,16 +441,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest) {
|
||||
return mergeFrom((bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest)other);
|
||||
if (other instanceof bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest) {
|
||||
return mergeFrom((bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest other) {
|
||||
if (other == bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest.getDefaultInstance()) return this;
|
||||
public Builder mergeFrom(bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest other) {
|
||||
if (other == bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest.getDefaultInstance()) return this;
|
||||
if (!other.getLedger().isEmpty()) {
|
||||
ledger_ = other.ledger_;
|
||||
onChanged();
|
||||
@ -466,11 +476,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest parsedMessage = null;
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -483,6 +493,7 @@ private static final long serialVersionUID = 0L;
|
||||
private java.lang.Object ledger_ = "";
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
public java.lang.String getLedger() {
|
||||
java.lang.Object ref = ledger_;
|
||||
@ -498,6 +509,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getLedgerBytes() {
|
||||
@ -514,6 +526,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @param value The ledger to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLedger(
|
||||
java.lang.String value) {
|
||||
@ -527,6 +541,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearLedger() {
|
||||
|
||||
@ -536,6 +551,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @param value The bytes for ledger to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLedgerBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
@ -552,12 +569,15 @@ private static final long serialVersionUID = 0L;
|
||||
private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>bytes block_hash = 2;</code>
|
||||
* @return The blockHash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getBlockHash() {
|
||||
return blockHash_;
|
||||
}
|
||||
/**
|
||||
* <code>bytes block_hash = 2;</code>
|
||||
* @param value The blockHash to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setBlockHash(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -570,6 +590,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>bytes block_hash = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearBlockHash() {
|
||||
|
||||
@ -581,12 +602,15 @@ private static final long serialVersionUID = 0L;
|
||||
private int index_ ;
|
||||
/**
|
||||
* <code>uint32 index = 3;</code>
|
||||
* @return The index.
|
||||
*/
|
||||
public int getIndex() {
|
||||
return index_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 index = 3;</code>
|
||||
* @param value The index to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setIndex(int value) {
|
||||
|
||||
@ -596,6 +620,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 index = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearIndex() {
|
||||
|
||||
@ -616,16 +641,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.GetTransactionByBlockHashAndIndexRequest)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest)
|
||||
private static final bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.GetTransactionByBlockHashAndIndexRequest)
|
||||
private static final bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest getDefaultInstance() {
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
@ -650,7 +675,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetTransactionByBlockHashAndIndexRequest getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -1,29 +1,33 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface GetTransactionByBlockHashAndIndexRequestOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.GetTransactionByBlockHashAndIndexRequest)
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.GetTransactionByBlockHashAndIndexRequest)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
java.lang.String getLedger();
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getLedgerBytes();
|
||||
|
||||
/**
|
||||
* <code>bytes block_hash = 2;</code>
|
||||
* @return The blockHash.
|
||||
*/
|
||||
com.google.protobuf.ByteString getBlockHash();
|
||||
|
||||
/**
|
||||
* <code>uint32 index = 3;</code>
|
||||
* @return The index.
|
||||
*/
|
||||
int getIndex();
|
||||
}
|
@ -0,0 +1,604 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdledger.api.GetTransactionByBlockHashAndIndexResponse}
|
||||
*/
|
||||
public final class GetTransactionByBlockHashAndIndexResponse extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.GetTransactionByBlockHashAndIndexResponse)
|
||||
GetTransactionByBlockHashAndIndexResponseOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GetTransactionByBlockHashAndIndexResponse.newBuilder() to construct.
|
||||
private GetTransactionByBlockHashAndIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private GetTransactionByBlockHashAndIndexResponse() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new GetTransactionByBlockHashAndIndexResponse();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private GetTransactionByBlockHashAndIndexResponse(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
this();
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
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: {
|
||||
bdledger.api.grpc.common.Transaction.Builder subBuilder = null;
|
||||
if (transaction_ != null) {
|
||||
subBuilder = transaction_.toBuilder();
|
||||
}
|
||||
transaction_ = input.readMessage(bdledger.api.grpc.common.Transaction.parser(), extensionRegistry);
|
||||
if (subBuilder != null) {
|
||||
subBuilder.mergeFrom(transaction_);
|
||||
transaction_ = subBuilder.buildPartial();
|
||||
}
|
||||
|
||||
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 bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByBlockHashAndIndexResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByBlockHashAndIndexResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse.class, bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse.Builder.class);
|
||||
}
|
||||
|
||||
public static final int TRANSACTION_FIELD_NUMBER = 1;
|
||||
private bdledger.api.grpc.common.Transaction transaction_;
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
* @return Whether the transaction field is set.
|
||||
*/
|
||||
public boolean hasTransaction() {
|
||||
return transaction_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
* @return The transaction.
|
||||
*/
|
||||
public bdledger.api.grpc.common.Transaction getTransaction() {
|
||||
return transaction_ == null ? bdledger.api.grpc.common.Transaction.getDefaultInstance() : transaction_;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.TransactionOrBuilder getTransactionOrBuilder() {
|
||||
return getTransaction();
|
||||
}
|
||||
|
||||
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 (transaction_ != null) {
|
||||
output.writeMessage(1, getTransaction());
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (transaction_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, getTransaction());
|
||||
}
|
||||
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 bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse other = (bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse) obj;
|
||||
|
||||
if (hasTransaction() != other.hasTransaction()) return false;
|
||||
if (hasTransaction()) {
|
||||
if (!getTransaction()
|
||||
.equals(other.getTransaction())) 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 (hasTransaction()) {
|
||||
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTransaction().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse 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 bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse 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 bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse 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(bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse 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 bdledger.api.GetTransactionByBlockHashAndIndexResponse}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.GetTransactionByBlockHashAndIndexResponse)
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByBlockHashAndIndexResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByBlockHashAndIndexResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse.class, bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse.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();
|
||||
if (transactionBuilder_ == null) {
|
||||
transaction_ = null;
|
||||
} else {
|
||||
transaction_ = null;
|
||||
transactionBuilder_ = null;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByBlockHashAndIndexResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse build() {
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse buildPartial() {
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse result = new bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse(this);
|
||||
if (transactionBuilder_ == null) {
|
||||
result.transaction_ = transaction_;
|
||||
} else {
|
||||
result.transaction_ = transactionBuilder_.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 bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse) {
|
||||
return mergeFrom((bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse other) {
|
||||
if (other == bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse.getDefaultInstance()) return this;
|
||||
if (other.hasTransaction()) {
|
||||
mergeTransaction(other.getTransaction());
|
||||
}
|
||||
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 {
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private bdledger.api.grpc.common.Transaction transaction_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
bdledger.api.grpc.common.Transaction, bdledger.api.grpc.common.Transaction.Builder, bdledger.api.grpc.common.TransactionOrBuilder> transactionBuilder_;
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
* @return Whether the transaction field is set.
|
||||
*/
|
||||
public boolean hasTransaction() {
|
||||
return transactionBuilder_ != null || transaction_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
* @return The transaction.
|
||||
*/
|
||||
public bdledger.api.grpc.common.Transaction getTransaction() {
|
||||
if (transactionBuilder_ == null) {
|
||||
return transaction_ == null ? bdledger.api.grpc.common.Transaction.getDefaultInstance() : transaction_;
|
||||
} else {
|
||||
return transactionBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public Builder setTransaction(bdledger.api.grpc.common.Transaction value) {
|
||||
if (transactionBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
transaction_ = value;
|
||||
onChanged();
|
||||
} else {
|
||||
transactionBuilder_.setMessage(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public Builder setTransaction(
|
||||
bdledger.api.grpc.common.Transaction.Builder builderForValue) {
|
||||
if (transactionBuilder_ == null) {
|
||||
transaction_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
transactionBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public Builder mergeTransaction(bdledger.api.grpc.common.Transaction value) {
|
||||
if (transactionBuilder_ == null) {
|
||||
if (transaction_ != null) {
|
||||
transaction_ =
|
||||
bdledger.api.grpc.common.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
|
||||
} else {
|
||||
transaction_ = value;
|
||||
}
|
||||
onChanged();
|
||||
} else {
|
||||
transactionBuilder_.mergeFrom(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public Builder clearTransaction() {
|
||||
if (transactionBuilder_ == null) {
|
||||
transaction_ = null;
|
||||
onChanged();
|
||||
} else {
|
||||
transaction_ = null;
|
||||
transactionBuilder_ = null;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.Transaction.Builder getTransactionBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getTransactionFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.TransactionOrBuilder getTransactionOrBuilder() {
|
||||
if (transactionBuilder_ != null) {
|
||||
return transactionBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return transaction_ == null ?
|
||||
bdledger.api.grpc.common.Transaction.getDefaultInstance() : transaction_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
bdledger.api.grpc.common.Transaction, bdledger.api.grpc.common.Transaction.Builder, bdledger.api.grpc.common.TransactionOrBuilder>
|
||||
getTransactionFieldBuilder() {
|
||||
if (transactionBuilder_ == null) {
|
||||
transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||
bdledger.api.grpc.common.Transaction, bdledger.api.grpc.common.Transaction.Builder, bdledger.api.grpc.common.TransactionOrBuilder>(
|
||||
getTransaction(),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
transaction_ = null;
|
||||
}
|
||||
return transactionBuilder_;
|
||||
}
|
||||
@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:bdledger.api.GetTransactionByBlockHashAndIndexResponse)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.GetTransactionByBlockHashAndIndexResponse)
|
||||
private static final bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse();
|
||||
}
|
||||
|
||||
public static bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<GetTransactionByBlockHashAndIndexResponse>
|
||||
PARSER = new com.google.protobuf.AbstractParser<GetTransactionByBlockHashAndIndexResponse>() {
|
||||
@java.lang.Override
|
||||
public GetTransactionByBlockHashAndIndexResponse parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new GetTransactionByBlockHashAndIndexResponse(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<GetTransactionByBlockHashAndIndexResponse> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<GetTransactionByBlockHashAndIndexResponse> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,24 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface GetTransactionByBlockHashAndIndexResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.GetTransactionByBlockHashAndIndexResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
* @return Whether the transaction field is set.
|
||||
*/
|
||||
boolean hasTransaction();
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
* @return The transaction.
|
||||
*/
|
||||
bdledger.api.grpc.common.Transaction getTransaction();
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
bdledger.api.grpc.common.TransactionOrBuilder getTransactionOrBuilder();
|
||||
}
|
@ -1,14 +1,14 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.acchain.GetTransactionByHashRequest}
|
||||
* Protobuf type {@code bdledger.api.GetTransactionByHashRequest}
|
||||
*/
|
||||
public final class GetTransactionByHashRequest extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.GetTransactionByHashRequest)
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.GetTransactionByHashRequest)
|
||||
GetTransactionByHashRequestOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GetTransactionByHashRequest.newBuilder() to construct.
|
||||
@ -20,6 +20,13 @@ private static final long serialVersionUID = 0L;
|
||||
hash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new GetTransactionByHashRequest();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
@ -33,7 +40,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -76,21 +82,22 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByHashRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByHashRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByHashRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByHashRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.GetTransactionByHashRequest.class, bdchain.api.grpc.acchain.GetTransactionByHashRequest.Builder.class);
|
||||
bdledger.api.grpc.query.GetTransactionByHashRequest.class, bdledger.api.grpc.query.GetTransactionByHashRequest.Builder.class);
|
||||
}
|
||||
|
||||
public static final int LEDGER_FIELD_NUMBER = 1;
|
||||
private volatile java.lang.Object ledger_;
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
public java.lang.String getLedger() {
|
||||
java.lang.Object ref = ledger_;
|
||||
@ -106,6 +113,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getLedgerBytes() {
|
||||
@ -125,6 +133,7 @@ private static final long serialVersionUID = 0L;
|
||||
private com.google.protobuf.ByteString hash_;
|
||||
/**
|
||||
* <code>bytes hash = 2;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getHash() {
|
||||
return hash_;
|
||||
@ -176,10 +185,10 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.acchain.GetTransactionByHashRequest)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.query.GetTransactionByHashRequest)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.acchain.GetTransactionByHashRequest other = (bdchain.api.grpc.acchain.GetTransactionByHashRequest) obj;
|
||||
bdledger.api.grpc.query.GetTransactionByHashRequest other = (bdledger.api.grpc.query.GetTransactionByHashRequest) obj;
|
||||
|
||||
if (!getLedger()
|
||||
.equals(other.getLedger())) return false;
|
||||
@ -205,69 +214,69 @@ private static final long serialVersionUID = 0L;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashRequest parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.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.acchain.GetTransactionByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashRequest parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.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.acchain.GetTransactionByHashRequest parseFrom(byte[] data)
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashRequest parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashRequest parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashRequest parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.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.acchain.GetTransactionByHashRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseDelimitedFrom(
|
||||
public static bdledger.api.grpc.query.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.acchain.GetTransactionByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -280,7 +289,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.acchain.GetTransactionByHashRequest prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.query.GetTransactionByHashRequest prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -296,26 +305,26 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.acchain.GetTransactionByHashRequest}
|
||||
* Protobuf type {@code bdledger.api.GetTransactionByHashRequest}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.acchain.GetTransactionByHashRequest)
|
||||
bdchain.api.grpc.acchain.GetTransactionByHashRequestOrBuilder {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.GetTransactionByHashRequest)
|
||||
bdledger.api.grpc.query.GetTransactionByHashRequestOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByHashRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByHashRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByHashRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByHashRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.GetTransactionByHashRequest.class, bdchain.api.grpc.acchain.GetTransactionByHashRequest.Builder.class);
|
||||
bdledger.api.grpc.query.GetTransactionByHashRequest.class, bdledger.api.grpc.query.GetTransactionByHashRequest.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.acchain.GetTransactionByHashRequest.newBuilder()
|
||||
// Construct using bdledger.api.grpc.query.GetTransactionByHashRequest.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -343,17 +352,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetTransactionByHashRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByHashRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetTransactionByHashRequest getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.acchain.GetTransactionByHashRequest.getDefaultInstance();
|
||||
public bdledger.api.grpc.query.GetTransactionByHashRequest getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.query.GetTransactionByHashRequest.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetTransactionByHashRequest build() {
|
||||
bdchain.api.grpc.acchain.GetTransactionByHashRequest result = buildPartial();
|
||||
public bdledger.api.grpc.query.GetTransactionByHashRequest build() {
|
||||
bdledger.api.grpc.query.GetTransactionByHashRequest result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -361,8 +370,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetTransactionByHashRequest buildPartial() {
|
||||
bdchain.api.grpc.acchain.GetTransactionByHashRequest result = new bdchain.api.grpc.acchain.GetTransactionByHashRequest(this);
|
||||
public bdledger.api.grpc.query.GetTransactionByHashRequest buildPartial() {
|
||||
bdledger.api.grpc.query.GetTransactionByHashRequest result = new bdledger.api.grpc.query.GetTransactionByHashRequest(this);
|
||||
result.ledger_ = ledger_;
|
||||
result.hash_ = hash_;
|
||||
onBuilt();
|
||||
@ -403,16 +412,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof bdchain.api.grpc.acchain.GetTransactionByHashRequest) {
|
||||
return mergeFrom((bdchain.api.grpc.acchain.GetTransactionByHashRequest)other);
|
||||
if (other instanceof bdledger.api.grpc.query.GetTransactionByHashRequest) {
|
||||
return mergeFrom((bdledger.api.grpc.query.GetTransactionByHashRequest)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdchain.api.grpc.acchain.GetTransactionByHashRequest other) {
|
||||
if (other == bdchain.api.grpc.acchain.GetTransactionByHashRequest.getDefaultInstance()) return this;
|
||||
public Builder mergeFrom(bdledger.api.grpc.query.GetTransactionByHashRequest other) {
|
||||
if (other == bdledger.api.grpc.query.GetTransactionByHashRequest.getDefaultInstance()) return this;
|
||||
if (!other.getLedger().isEmpty()) {
|
||||
ledger_ = other.ledger_;
|
||||
onChanged();
|
||||
@ -435,11 +444,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.acchain.GetTransactionByHashRequest parsedMessage = null;
|
||||
bdledger.api.grpc.query.GetTransactionByHashRequest parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.acchain.GetTransactionByHashRequest) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.query.GetTransactionByHashRequest) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -452,6 +461,7 @@ private static final long serialVersionUID = 0L;
|
||||
private java.lang.Object ledger_ = "";
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
public java.lang.String getLedger() {
|
||||
java.lang.Object ref = ledger_;
|
||||
@ -467,6 +477,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getLedgerBytes() {
|
||||
@ -483,6 +494,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @param value The ledger to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLedger(
|
||||
java.lang.String value) {
|
||||
@ -496,6 +509,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearLedger() {
|
||||
|
||||
@ -505,6 +519,8 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @param value The bytes for ledger to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setLedgerBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
@ -521,12 +537,15 @@ private static final long serialVersionUID = 0L;
|
||||
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>bytes hash = 2;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getHash() {
|
||||
return hash_;
|
||||
}
|
||||
/**
|
||||
* <code>bytes hash = 2;</code>
|
||||
* @param value The hash to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setHash(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
@ -539,6 +558,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
/**
|
||||
* <code>bytes hash = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearHash() {
|
||||
|
||||
@ -559,16 +579,16 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.acchain.GetTransactionByHashRequest)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.GetTransactionByHashRequest)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.acchain.GetTransactionByHashRequest)
|
||||
private static final bdchain.api.grpc.acchain.GetTransactionByHashRequest DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.GetTransactionByHashRequest)
|
||||
private static final bdledger.api.grpc.query.GetTransactionByHashRequest DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.acchain.GetTransactionByHashRequest();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.query.GetTransactionByHashRequest();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.acchain.GetTransactionByHashRequest getDefaultInstance() {
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashRequest getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
@ -593,7 +613,7 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetTransactionByHashRequest getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.query.GetTransactionByHashRequest getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -1,24 +1,27 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface GetTransactionByHashRequestOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdchain.api.acchain.GetTransactionByHashRequest)
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.GetTransactionByHashRequest)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
java.lang.String getLedger();
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getLedgerBytes();
|
||||
|
||||
/**
|
||||
* <code>bytes hash = 2;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
com.google.protobuf.ByteString getHash();
|
||||
}
|
@ -0,0 +1,604 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdledger.api.GetTransactionByHashResponse}
|
||||
*/
|
||||
public final class GetTransactionByHashResponse extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.GetTransactionByHashResponse)
|
||||
GetTransactionByHashResponseOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GetTransactionByHashResponse.newBuilder() to construct.
|
||||
private GetTransactionByHashResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private GetTransactionByHashResponse() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new GetTransactionByHashResponse();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private GetTransactionByHashResponse(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
this();
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
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: {
|
||||
bdledger.api.grpc.common.Transaction.Builder subBuilder = null;
|
||||
if (transaction_ != null) {
|
||||
subBuilder = transaction_.toBuilder();
|
||||
}
|
||||
transaction_ = input.readMessage(bdledger.api.grpc.common.Transaction.parser(), extensionRegistry);
|
||||
if (subBuilder != null) {
|
||||
subBuilder.mergeFrom(transaction_);
|
||||
transaction_ = subBuilder.buildPartial();
|
||||
}
|
||||
|
||||
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 bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByHashResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByHashResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdledger.api.grpc.query.GetTransactionByHashResponse.class, bdledger.api.grpc.query.GetTransactionByHashResponse.Builder.class);
|
||||
}
|
||||
|
||||
public static final int TRANSACTION_FIELD_NUMBER = 1;
|
||||
private bdledger.api.grpc.common.Transaction transaction_;
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
* @return Whether the transaction field is set.
|
||||
*/
|
||||
public boolean hasTransaction() {
|
||||
return transaction_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
* @return The transaction.
|
||||
*/
|
||||
public bdledger.api.grpc.common.Transaction getTransaction() {
|
||||
return transaction_ == null ? bdledger.api.grpc.common.Transaction.getDefaultInstance() : transaction_;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.TransactionOrBuilder getTransactionOrBuilder() {
|
||||
return getTransaction();
|
||||
}
|
||||
|
||||
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 (transaction_ != null) {
|
||||
output.writeMessage(1, getTransaction());
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (transaction_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, getTransaction());
|
||||
}
|
||||
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 bdledger.api.grpc.query.GetTransactionByHashResponse)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdledger.api.grpc.query.GetTransactionByHashResponse other = (bdledger.api.grpc.query.GetTransactionByHashResponse) obj;
|
||||
|
||||
if (hasTransaction() != other.hasTransaction()) return false;
|
||||
if (hasTransaction()) {
|
||||
if (!getTransaction()
|
||||
.equals(other.getTransaction())) 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 (hasTransaction()) {
|
||||
hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTransaction().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashResponse parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashResponse parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashResponse parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashResponse parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashResponse parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashResponse 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 bdledger.api.grpc.query.GetTransactionByHashResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashResponse 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 bdledger.api.grpc.query.GetTransactionByHashResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashResponse 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(bdledger.api.grpc.query.GetTransactionByHashResponse 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 bdledger.api.GetTransactionByHashResponse}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.GetTransactionByHashResponse)
|
||||
bdledger.api.grpc.query.GetTransactionByHashResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByHashResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByHashResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdledger.api.grpc.query.GetTransactionByHashResponse.class, bdledger.api.grpc.query.GetTransactionByHashResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdledger.api.grpc.query.GetTransactionByHashResponse.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();
|
||||
if (transactionBuilder_ == null) {
|
||||
transaction_ = null;
|
||||
} else {
|
||||
transaction_ = null;
|
||||
transactionBuilder_ = null;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionByHashResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.GetTransactionByHashResponse getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.query.GetTransactionByHashResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.GetTransactionByHashResponse build() {
|
||||
bdledger.api.grpc.query.GetTransactionByHashResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.GetTransactionByHashResponse buildPartial() {
|
||||
bdledger.api.grpc.query.GetTransactionByHashResponse result = new bdledger.api.grpc.query.GetTransactionByHashResponse(this);
|
||||
if (transactionBuilder_ == null) {
|
||||
result.transaction_ = transaction_;
|
||||
} else {
|
||||
result.transaction_ = transactionBuilder_.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 bdledger.api.grpc.query.GetTransactionByHashResponse) {
|
||||
return mergeFrom((bdledger.api.grpc.query.GetTransactionByHashResponse)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdledger.api.grpc.query.GetTransactionByHashResponse other) {
|
||||
if (other == bdledger.api.grpc.query.GetTransactionByHashResponse.getDefaultInstance()) return this;
|
||||
if (other.hasTransaction()) {
|
||||
mergeTransaction(other.getTransaction());
|
||||
}
|
||||
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 {
|
||||
bdledger.api.grpc.query.GetTransactionByHashResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdledger.api.grpc.query.GetTransactionByHashResponse) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private bdledger.api.grpc.common.Transaction transaction_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
bdledger.api.grpc.common.Transaction, bdledger.api.grpc.common.Transaction.Builder, bdledger.api.grpc.common.TransactionOrBuilder> transactionBuilder_;
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
* @return Whether the transaction field is set.
|
||||
*/
|
||||
public boolean hasTransaction() {
|
||||
return transactionBuilder_ != null || transaction_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
* @return The transaction.
|
||||
*/
|
||||
public bdledger.api.grpc.common.Transaction getTransaction() {
|
||||
if (transactionBuilder_ == null) {
|
||||
return transaction_ == null ? bdledger.api.grpc.common.Transaction.getDefaultInstance() : transaction_;
|
||||
} else {
|
||||
return transactionBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public Builder setTransaction(bdledger.api.grpc.common.Transaction value) {
|
||||
if (transactionBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
transaction_ = value;
|
||||
onChanged();
|
||||
} else {
|
||||
transactionBuilder_.setMessage(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public Builder setTransaction(
|
||||
bdledger.api.grpc.common.Transaction.Builder builderForValue) {
|
||||
if (transactionBuilder_ == null) {
|
||||
transaction_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
transactionBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public Builder mergeTransaction(bdledger.api.grpc.common.Transaction value) {
|
||||
if (transactionBuilder_ == null) {
|
||||
if (transaction_ != null) {
|
||||
transaction_ =
|
||||
bdledger.api.grpc.common.Transaction.newBuilder(transaction_).mergeFrom(value).buildPartial();
|
||||
} else {
|
||||
transaction_ = value;
|
||||
}
|
||||
onChanged();
|
||||
} else {
|
||||
transactionBuilder_.mergeFrom(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public Builder clearTransaction() {
|
||||
if (transactionBuilder_ == null) {
|
||||
transaction_ = null;
|
||||
onChanged();
|
||||
} else {
|
||||
transaction_ = null;
|
||||
transactionBuilder_ = null;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.Transaction.Builder getTransactionBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getTransactionFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.TransactionOrBuilder getTransactionOrBuilder() {
|
||||
if (transactionBuilder_ != null) {
|
||||
return transactionBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return transaction_ == null ?
|
||||
bdledger.api.grpc.common.Transaction.getDefaultInstance() : transaction_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
bdledger.api.grpc.common.Transaction, bdledger.api.grpc.common.Transaction.Builder, bdledger.api.grpc.common.TransactionOrBuilder>
|
||||
getTransactionFieldBuilder() {
|
||||
if (transactionBuilder_ == null) {
|
||||
transactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||
bdledger.api.grpc.common.Transaction, bdledger.api.grpc.common.Transaction.Builder, bdledger.api.grpc.common.TransactionOrBuilder>(
|
||||
getTransaction(),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
transaction_ = null;
|
||||
}
|
||||
return transactionBuilder_;
|
||||
}
|
||||
@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:bdledger.api.GetTransactionByHashResponse)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.GetTransactionByHashResponse)
|
||||
private static final bdledger.api.grpc.query.GetTransactionByHashResponse DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.query.GetTransactionByHashResponse();
|
||||
}
|
||||
|
||||
public static bdledger.api.grpc.query.GetTransactionByHashResponse getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<GetTransactionByHashResponse>
|
||||
PARSER = new com.google.protobuf.AbstractParser<GetTransactionByHashResponse>() {
|
||||
@java.lang.Override
|
||||
public GetTransactionByHashResponse parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new GetTransactionByHashResponse(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<GetTransactionByHashResponse> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<GetTransactionByHashResponse> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.GetTransactionByHashResponse getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,24 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface GetTransactionByHashResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.GetTransactionByHashResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
* @return Whether the transaction field is set.
|
||||
*/
|
||||
boolean hasTransaction();
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
* @return The transaction.
|
||||
*/
|
||||
bdledger.api.grpc.common.Transaction getTransaction();
|
||||
/**
|
||||
* <code>.bdledger.api.Transaction transaction = 1;</code>
|
||||
*/
|
||||
bdledger.api.grpc.common.TransactionOrBuilder getTransactionOrBuilder();
|
||||
}
|
@ -0,0 +1,891 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdledger.api.GetTransactionsResponse}
|
||||
*/
|
||||
public final class GetTransactionsResponse extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.GetTransactionsResponse)
|
||||
GetTransactionsResponseOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GetTransactionsResponse.newBuilder() to construct.
|
||||
private GetTransactionsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private GetTransactionsResponse() {
|
||||
transactions_ = java.util.Collections.emptyList();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new GetTransactionsResponse();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private GetTransactionsResponse(
|
||||
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)) {
|
||||
transactions_ = new java.util.ArrayList<bdledger.api.grpc.common.Transaction>();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
}
|
||||
transactions_.add(
|
||||
input.readMessage(bdledger.api.grpc.common.Transaction.parser(), extensionRegistry));
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
|
||||
startTimestamp_ = input.readInt64();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
|
||||
endTimestamp_ = input.readInt64();
|
||||
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)) {
|
||||
transactions_ = java.util.Collections.unmodifiableList(transactions_);
|
||||
}
|
||||
this.unknownFields = unknownFields.build();
|
||||
makeExtensionsImmutable();
|
||||
}
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionsResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionsResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdledger.api.grpc.query.GetTransactionsResponse.class, bdledger.api.grpc.query.GetTransactionsResponse.Builder.class);
|
||||
}
|
||||
|
||||
public static final int TRANSACTIONS_FIELD_NUMBER = 1;
|
||||
private java.util.List<bdledger.api.grpc.common.Transaction> transactions_;
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public java.util.List<bdledger.api.grpc.common.Transaction> getTransactionsList() {
|
||||
return transactions_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public java.util.List<? extends bdledger.api.grpc.common.TransactionOrBuilder>
|
||||
getTransactionsOrBuilderList() {
|
||||
return transactions_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public int getTransactionsCount() {
|
||||
return transactions_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.Transaction getTransactions(int index) {
|
||||
return transactions_.get(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.TransactionOrBuilder getTransactionsOrBuilder(
|
||||
int index) {
|
||||
return transactions_.get(index);
|
||||
}
|
||||
|
||||
public static final int START_TIMESTAMP_FIELD_NUMBER = 2;
|
||||
private long startTimestamp_;
|
||||
/**
|
||||
* <code>int64 start_timestamp = 2;</code>
|
||||
* @return The startTimestamp.
|
||||
*/
|
||||
public long getStartTimestamp() {
|
||||
return startTimestamp_;
|
||||
}
|
||||
|
||||
public static final int END_TIMESTAMP_FIELD_NUMBER = 3;
|
||||
private long endTimestamp_;
|
||||
/**
|
||||
* <code>int64 end_timestamp = 3;</code>
|
||||
* @return The endTimestamp.
|
||||
*/
|
||||
public long getEndTimestamp() {
|
||||
return endTimestamp_;
|
||||
}
|
||||
|
||||
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 < transactions_.size(); i++) {
|
||||
output.writeMessage(1, transactions_.get(i));
|
||||
}
|
||||
if (startTimestamp_ != 0L) {
|
||||
output.writeInt64(2, startTimestamp_);
|
||||
}
|
||||
if (endTimestamp_ != 0L) {
|
||||
output.writeInt64(3, endTimestamp_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
for (int i = 0; i < transactions_.size(); i++) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, transactions_.get(i));
|
||||
}
|
||||
if (startTimestamp_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt64Size(2, startTimestamp_);
|
||||
}
|
||||
if (endTimestamp_ != 0L) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt64Size(3, endTimestamp_);
|
||||
}
|
||||
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 bdledger.api.grpc.query.GetTransactionsResponse)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdledger.api.grpc.query.GetTransactionsResponse other = (bdledger.api.grpc.query.GetTransactionsResponse) obj;
|
||||
|
||||
if (!getTransactionsList()
|
||||
.equals(other.getTransactionsList())) return false;
|
||||
if (getStartTimestamp()
|
||||
!= other.getStartTimestamp()) return false;
|
||||
if (getEndTimestamp()
|
||||
!= other.getEndTimestamp()) 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 (getTransactionsCount() > 0) {
|
||||
hash = (37 * hash) + TRANSACTIONS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTransactionsList().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + START_TIMESTAMP_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getStartTimestamp());
|
||||
hash = (37 * hash) + END_TIMESTAMP_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getEndTimestamp());
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdledger.api.grpc.query.GetTransactionsResponse parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionsResponse parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionsResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionsResponse parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionsResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionsResponse parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionsResponse parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionsResponse 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 bdledger.api.grpc.query.GetTransactionsResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionsResponse 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 bdledger.api.grpc.query.GetTransactionsResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdledger.api.grpc.query.GetTransactionsResponse 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(bdledger.api.grpc.query.GetTransactionsResponse 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 bdledger.api.GetTransactionsResponse}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.GetTransactionsResponse)
|
||||
bdledger.api.grpc.query.GetTransactionsResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionsResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionsResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdledger.api.grpc.query.GetTransactionsResponse.class, bdledger.api.grpc.query.GetTransactionsResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdledger.api.grpc.query.GetTransactionsResponse.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (com.google.protobuf.GeneratedMessageV3
|
||||
.alwaysUseFieldBuilders) {
|
||||
getTransactionsFieldBuilder();
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
if (transactionsBuilder_ == null) {
|
||||
transactions_ = java.util.Collections.emptyList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
} else {
|
||||
transactionsBuilder_.clear();
|
||||
}
|
||||
startTimestamp_ = 0L;
|
||||
|
||||
endTimestamp_ = 0L;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_GetTransactionsResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.GetTransactionsResponse getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.query.GetTransactionsResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.GetTransactionsResponse build() {
|
||||
bdledger.api.grpc.query.GetTransactionsResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.GetTransactionsResponse buildPartial() {
|
||||
bdledger.api.grpc.query.GetTransactionsResponse result = new bdledger.api.grpc.query.GetTransactionsResponse(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (transactionsBuilder_ == null) {
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
transactions_ = java.util.Collections.unmodifiableList(transactions_);
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.transactions_ = transactions_;
|
||||
} else {
|
||||
result.transactions_ = transactionsBuilder_.build();
|
||||
}
|
||||
result.startTimestamp_ = startTimestamp_;
|
||||
result.endTimestamp_ = endTimestamp_;
|
||||
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 bdledger.api.grpc.query.GetTransactionsResponse) {
|
||||
return mergeFrom((bdledger.api.grpc.query.GetTransactionsResponse)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(bdledger.api.grpc.query.GetTransactionsResponse other) {
|
||||
if (other == bdledger.api.grpc.query.GetTransactionsResponse.getDefaultInstance()) return this;
|
||||
if (transactionsBuilder_ == null) {
|
||||
if (!other.transactions_.isEmpty()) {
|
||||
if (transactions_.isEmpty()) {
|
||||
transactions_ = other.transactions_;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
} else {
|
||||
ensureTransactionsIsMutable();
|
||||
transactions_.addAll(other.transactions_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
} else {
|
||||
if (!other.transactions_.isEmpty()) {
|
||||
if (transactionsBuilder_.isEmpty()) {
|
||||
transactionsBuilder_.dispose();
|
||||
transactionsBuilder_ = null;
|
||||
transactions_ = other.transactions_;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
transactionsBuilder_ =
|
||||
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
||||
getTransactionsFieldBuilder() : null;
|
||||
} else {
|
||||
transactionsBuilder_.addAllMessages(other.transactions_);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (other.getStartTimestamp() != 0L) {
|
||||
setStartTimestamp(other.getStartTimestamp());
|
||||
}
|
||||
if (other.getEndTimestamp() != 0L) {
|
||||
setEndTimestamp(other.getEndTimestamp());
|
||||
}
|
||||
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 {
|
||||
bdledger.api.grpc.query.GetTransactionsResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdledger.api.grpc.query.GetTransactionsResponse) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private java.util.List<bdledger.api.grpc.common.Transaction> transactions_ =
|
||||
java.util.Collections.emptyList();
|
||||
private void ensureTransactionsIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
transactions_ = new java.util.ArrayList<bdledger.api.grpc.common.Transaction>(transactions_);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
}
|
||||
|
||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
||||
bdledger.api.grpc.common.Transaction, bdledger.api.grpc.common.Transaction.Builder, bdledger.api.grpc.common.TransactionOrBuilder> transactionsBuilder_;
|
||||
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public java.util.List<bdledger.api.grpc.common.Transaction> getTransactionsList() {
|
||||
if (transactionsBuilder_ == null) {
|
||||
return java.util.Collections.unmodifiableList(transactions_);
|
||||
} else {
|
||||
return transactionsBuilder_.getMessageList();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public int getTransactionsCount() {
|
||||
if (transactionsBuilder_ == null) {
|
||||
return transactions_.size();
|
||||
} else {
|
||||
return transactionsBuilder_.getCount();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.Transaction getTransactions(int index) {
|
||||
if (transactionsBuilder_ == null) {
|
||||
return transactions_.get(index);
|
||||
} else {
|
||||
return transactionsBuilder_.getMessage(index);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public Builder setTransactions(
|
||||
int index, bdledger.api.grpc.common.Transaction value) {
|
||||
if (transactionsBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureTransactionsIsMutable();
|
||||
transactions_.set(index, value);
|
||||
onChanged();
|
||||
} else {
|
||||
transactionsBuilder_.setMessage(index, value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public Builder setTransactions(
|
||||
int index, bdledger.api.grpc.common.Transaction.Builder builderForValue) {
|
||||
if (transactionsBuilder_ == null) {
|
||||
ensureTransactionsIsMutable();
|
||||
transactions_.set(index, builderForValue.build());
|
||||
onChanged();
|
||||
} else {
|
||||
transactionsBuilder_.setMessage(index, builderForValue.build());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public Builder addTransactions(bdledger.api.grpc.common.Transaction value) {
|
||||
if (transactionsBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureTransactionsIsMutable();
|
||||
transactions_.add(value);
|
||||
onChanged();
|
||||
} else {
|
||||
transactionsBuilder_.addMessage(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public Builder addTransactions(
|
||||
int index, bdledger.api.grpc.common.Transaction value) {
|
||||
if (transactionsBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureTransactionsIsMutable();
|
||||
transactions_.add(index, value);
|
||||
onChanged();
|
||||
} else {
|
||||
transactionsBuilder_.addMessage(index, value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public Builder addTransactions(
|
||||
bdledger.api.grpc.common.Transaction.Builder builderForValue) {
|
||||
if (transactionsBuilder_ == null) {
|
||||
ensureTransactionsIsMutable();
|
||||
transactions_.add(builderForValue.build());
|
||||
onChanged();
|
||||
} else {
|
||||
transactionsBuilder_.addMessage(builderForValue.build());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public Builder addTransactions(
|
||||
int index, bdledger.api.grpc.common.Transaction.Builder builderForValue) {
|
||||
if (transactionsBuilder_ == null) {
|
||||
ensureTransactionsIsMutable();
|
||||
transactions_.add(index, builderForValue.build());
|
||||
onChanged();
|
||||
} else {
|
||||
transactionsBuilder_.addMessage(index, builderForValue.build());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public Builder addAllTransactions(
|
||||
java.lang.Iterable<? extends bdledger.api.grpc.common.Transaction> values) {
|
||||
if (transactionsBuilder_ == null) {
|
||||
ensureTransactionsIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, transactions_);
|
||||
onChanged();
|
||||
} else {
|
||||
transactionsBuilder_.addAllMessages(values);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public Builder clearTransactions() {
|
||||
if (transactionsBuilder_ == null) {
|
||||
transactions_ = java.util.Collections.emptyList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
} else {
|
||||
transactionsBuilder_.clear();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public Builder removeTransactions(int index) {
|
||||
if (transactionsBuilder_ == null) {
|
||||
ensureTransactionsIsMutable();
|
||||
transactions_.remove(index);
|
||||
onChanged();
|
||||
} else {
|
||||
transactionsBuilder_.remove(index);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.Transaction.Builder getTransactionsBuilder(
|
||||
int index) {
|
||||
return getTransactionsFieldBuilder().getBuilder(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.TransactionOrBuilder getTransactionsOrBuilder(
|
||||
int index) {
|
||||
if (transactionsBuilder_ == null) {
|
||||
return transactions_.get(index); } else {
|
||||
return transactionsBuilder_.getMessageOrBuilder(index);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public java.util.List<? extends bdledger.api.grpc.common.TransactionOrBuilder>
|
||||
getTransactionsOrBuilderList() {
|
||||
if (transactionsBuilder_ != null) {
|
||||
return transactionsBuilder_.getMessageOrBuilderList();
|
||||
} else {
|
||||
return java.util.Collections.unmodifiableList(transactions_);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.Transaction.Builder addTransactionsBuilder() {
|
||||
return getTransactionsFieldBuilder().addBuilder(
|
||||
bdledger.api.grpc.common.Transaction.getDefaultInstance());
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public bdledger.api.grpc.common.Transaction.Builder addTransactionsBuilder(
|
||||
int index) {
|
||||
return getTransactionsFieldBuilder().addBuilder(
|
||||
index, bdledger.api.grpc.common.Transaction.getDefaultInstance());
|
||||
}
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
public java.util.List<bdledger.api.grpc.common.Transaction.Builder>
|
||||
getTransactionsBuilderList() {
|
||||
return getTransactionsFieldBuilder().getBuilderList();
|
||||
}
|
||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
||||
bdledger.api.grpc.common.Transaction, bdledger.api.grpc.common.Transaction.Builder, bdledger.api.grpc.common.TransactionOrBuilder>
|
||||
getTransactionsFieldBuilder() {
|
||||
if (transactionsBuilder_ == null) {
|
||||
transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
||||
bdledger.api.grpc.common.Transaction, bdledger.api.grpc.common.Transaction.Builder, bdledger.api.grpc.common.TransactionOrBuilder>(
|
||||
transactions_,
|
||||
((bitField0_ & 0x00000001) != 0),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
transactions_ = null;
|
||||
}
|
||||
return transactionsBuilder_;
|
||||
}
|
||||
|
||||
private long startTimestamp_ ;
|
||||
/**
|
||||
* <code>int64 start_timestamp = 2;</code>
|
||||
* @return The startTimestamp.
|
||||
*/
|
||||
public long getStartTimestamp() {
|
||||
return startTimestamp_;
|
||||
}
|
||||
/**
|
||||
* <code>int64 start_timestamp = 2;</code>
|
||||
* @param value The startTimestamp to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setStartTimestamp(long value) {
|
||||
|
||||
startTimestamp_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int64 start_timestamp = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearStartTimestamp() {
|
||||
|
||||
startTimestamp_ = 0L;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private long endTimestamp_ ;
|
||||
/**
|
||||
* <code>int64 end_timestamp = 3;</code>
|
||||
* @return The endTimestamp.
|
||||
*/
|
||||
public long getEndTimestamp() {
|
||||
return endTimestamp_;
|
||||
}
|
||||
/**
|
||||
* <code>int64 end_timestamp = 3;</code>
|
||||
* @param value The endTimestamp to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setEndTimestamp(long value) {
|
||||
|
||||
endTimestamp_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int64 end_timestamp = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearEndTimestamp() {
|
||||
|
||||
endTimestamp_ = 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:bdledger.api.GetTransactionsResponse)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.GetTransactionsResponse)
|
||||
private static final bdledger.api.grpc.query.GetTransactionsResponse DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.query.GetTransactionsResponse();
|
||||
}
|
||||
|
||||
public static bdledger.api.grpc.query.GetTransactionsResponse getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<GetTransactionsResponse>
|
||||
PARSER = new com.google.protobuf.AbstractParser<GetTransactionsResponse>() {
|
||||
@java.lang.Override
|
||||
public GetTransactionsResponse parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new GetTransactionsResponse(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<GetTransactionsResponse> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<GetTransactionsResponse> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdledger.api.grpc.query.GetTransactionsResponse getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,45 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface GetTransactionsResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.GetTransactionsResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
java.util.List<bdledger.api.grpc.common.Transaction>
|
||||
getTransactionsList();
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
bdledger.api.grpc.common.Transaction getTransactions(int index);
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
int getTransactionsCount();
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
java.util.List<? extends bdledger.api.grpc.common.TransactionOrBuilder>
|
||||
getTransactionsOrBuilderList();
|
||||
/**
|
||||
* <code>repeated .bdledger.api.Transaction transactions = 1;</code>
|
||||
*/
|
||||
bdledger.api.grpc.common.TransactionOrBuilder getTransactionsOrBuilder(
|
||||
int index);
|
||||
|
||||
/**
|
||||
* <code>int64 start_timestamp = 2;</code>
|
||||
* @return The startTimestamp.
|
||||
*/
|
||||
long getStartTimestamp();
|
||||
|
||||
/**
|
||||
* <code>int64 end_timestamp = 3;</code>
|
||||
* @return The endTimestamp.
|
||||
*/
|
||||
long getEndTimestamp();
|
||||
}
|
732
src/main/java/bdledger/api/grpc/query/QueryGrpc.java
Normal file
732
src/main/java/bdledger/api/grpc/query/QueryGrpc.java
Normal file
@ -0,0 +1,732 @@
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
|
||||
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
|
||||
import static io.grpc.stub.ClientCalls.futureUnaryCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
|
||||
|
||||
/**
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = "by gRPC proto compiler (version 1.27.0)",
|
||||
comments = "Source: bdledger/api/query.proto")
|
||||
public final class QueryGrpc {
|
||||
|
||||
private QueryGrpc() {}
|
||||
|
||||
public static final String SERVICE_NAME = "bdledger.api.Query";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<bdledger.api.grpc.query.BlocksRequest,
|
||||
bdledger.api.grpc.query.GetBlocksResponse> getGetBlocksMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetBlocks",
|
||||
requestType = bdledger.api.grpc.query.BlocksRequest.class,
|
||||
responseType = bdledger.api.grpc.query.GetBlocksResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<bdledger.api.grpc.query.BlocksRequest,
|
||||
bdledger.api.grpc.query.GetBlocksResponse> getGetBlocksMethod() {
|
||||
io.grpc.MethodDescriptor<bdledger.api.grpc.query.BlocksRequest, bdledger.api.grpc.query.GetBlocksResponse> getGetBlocksMethod;
|
||||
if ((getGetBlocksMethod = QueryGrpc.getGetBlocksMethod) == null) {
|
||||
synchronized (QueryGrpc.class) {
|
||||
if ((getGetBlocksMethod = QueryGrpc.getGetBlocksMethod) == null) {
|
||||
QueryGrpc.getGetBlocksMethod = getGetBlocksMethod =
|
||||
io.grpc.MethodDescriptor.<bdledger.api.grpc.query.BlocksRequest, bdledger.api.grpc.query.GetBlocksResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlocks"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.BlocksRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.GetBlocksResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("GetBlocks"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetBlocksMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<bdledger.api.grpc.query.BlocksRequest,
|
||||
bdledger.api.grpc.query.CountBlocksResponse> getCountBlocksMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "CountBlocks",
|
||||
requestType = bdledger.api.grpc.query.BlocksRequest.class,
|
||||
responseType = bdledger.api.grpc.query.CountBlocksResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<bdledger.api.grpc.query.BlocksRequest,
|
||||
bdledger.api.grpc.query.CountBlocksResponse> getCountBlocksMethod() {
|
||||
io.grpc.MethodDescriptor<bdledger.api.grpc.query.BlocksRequest, bdledger.api.grpc.query.CountBlocksResponse> getCountBlocksMethod;
|
||||
if ((getCountBlocksMethod = QueryGrpc.getCountBlocksMethod) == null) {
|
||||
synchronized (QueryGrpc.class) {
|
||||
if ((getCountBlocksMethod = QueryGrpc.getCountBlocksMethod) == null) {
|
||||
QueryGrpc.getCountBlocksMethod = getCountBlocksMethod =
|
||||
io.grpc.MethodDescriptor.<bdledger.api.grpc.query.BlocksRequest, bdledger.api.grpc.query.CountBlocksResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CountBlocks"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.BlocksRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.CountBlocksResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("CountBlocks"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getCountBlocksMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<bdledger.api.grpc.query.TransactionsRequest,
|
||||
bdledger.api.grpc.query.GetTransactionsResponse> getGetTransactionsMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetTransactions",
|
||||
requestType = bdledger.api.grpc.query.TransactionsRequest.class,
|
||||
responseType = bdledger.api.grpc.query.GetTransactionsResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<bdledger.api.grpc.query.TransactionsRequest,
|
||||
bdledger.api.grpc.query.GetTransactionsResponse> getGetTransactionsMethod() {
|
||||
io.grpc.MethodDescriptor<bdledger.api.grpc.query.TransactionsRequest, bdledger.api.grpc.query.GetTransactionsResponse> getGetTransactionsMethod;
|
||||
if ((getGetTransactionsMethod = QueryGrpc.getGetTransactionsMethod) == null) {
|
||||
synchronized (QueryGrpc.class) {
|
||||
if ((getGetTransactionsMethod = QueryGrpc.getGetTransactionsMethod) == null) {
|
||||
QueryGrpc.getGetTransactionsMethod = getGetTransactionsMethod =
|
||||
io.grpc.MethodDescriptor.<bdledger.api.grpc.query.TransactionsRequest, bdledger.api.grpc.query.GetTransactionsResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactions"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.TransactionsRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.GetTransactionsResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("GetTransactions"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetTransactionsMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<bdledger.api.grpc.query.TransactionsRequest,
|
||||
bdledger.api.grpc.query.CountTransactionsResponse> getCountTransactionsMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "CountTransactions",
|
||||
requestType = bdledger.api.grpc.query.TransactionsRequest.class,
|
||||
responseType = bdledger.api.grpc.query.CountTransactionsResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<bdledger.api.grpc.query.TransactionsRequest,
|
||||
bdledger.api.grpc.query.CountTransactionsResponse> getCountTransactionsMethod() {
|
||||
io.grpc.MethodDescriptor<bdledger.api.grpc.query.TransactionsRequest, bdledger.api.grpc.query.CountTransactionsResponse> getCountTransactionsMethod;
|
||||
if ((getCountTransactionsMethod = QueryGrpc.getCountTransactionsMethod) == null) {
|
||||
synchronized (QueryGrpc.class) {
|
||||
if ((getCountTransactionsMethod = QueryGrpc.getCountTransactionsMethod) == null) {
|
||||
QueryGrpc.getCountTransactionsMethod = getCountTransactionsMethod =
|
||||
io.grpc.MethodDescriptor.<bdledger.api.grpc.query.TransactionsRequest, bdledger.api.grpc.query.CountTransactionsResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CountTransactions"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.TransactionsRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.CountTransactionsResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("CountTransactions"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getCountTransactionsMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<bdledger.api.grpc.query.GetBlockByHashRequest,
|
||||
bdledger.api.grpc.query.GetBlockByHashResponse> getGetBlockByHashMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetBlockByHash",
|
||||
requestType = bdledger.api.grpc.query.GetBlockByHashRequest.class,
|
||||
responseType = bdledger.api.grpc.query.GetBlockByHashResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<bdledger.api.grpc.query.GetBlockByHashRequest,
|
||||
bdledger.api.grpc.query.GetBlockByHashResponse> getGetBlockByHashMethod() {
|
||||
io.grpc.MethodDescriptor<bdledger.api.grpc.query.GetBlockByHashRequest, bdledger.api.grpc.query.GetBlockByHashResponse> getGetBlockByHashMethod;
|
||||
if ((getGetBlockByHashMethod = QueryGrpc.getGetBlockByHashMethod) == null) {
|
||||
synchronized (QueryGrpc.class) {
|
||||
if ((getGetBlockByHashMethod = QueryGrpc.getGetBlockByHashMethod) == null) {
|
||||
QueryGrpc.getGetBlockByHashMethod = getGetBlockByHashMethod =
|
||||
io.grpc.MethodDescriptor.<bdledger.api.grpc.query.GetBlockByHashRequest, bdledger.api.grpc.query.GetBlockByHashResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockByHash"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.GetBlockByHashRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.GetBlockByHashResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("GetBlockByHash"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetBlockByHashMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<bdledger.api.grpc.query.GetTransactionByHashRequest,
|
||||
bdledger.api.grpc.query.GetTransactionByHashResponse> getGetTransactionByHashMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetTransactionByHash",
|
||||
requestType = bdledger.api.grpc.query.GetTransactionByHashRequest.class,
|
||||
responseType = bdledger.api.grpc.query.GetTransactionByHashResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<bdledger.api.grpc.query.GetTransactionByHashRequest,
|
||||
bdledger.api.grpc.query.GetTransactionByHashResponse> getGetTransactionByHashMethod() {
|
||||
io.grpc.MethodDescriptor<bdledger.api.grpc.query.GetTransactionByHashRequest, bdledger.api.grpc.query.GetTransactionByHashResponse> getGetTransactionByHashMethod;
|
||||
if ((getGetTransactionByHashMethod = QueryGrpc.getGetTransactionByHashMethod) == null) {
|
||||
synchronized (QueryGrpc.class) {
|
||||
if ((getGetTransactionByHashMethod = QueryGrpc.getGetTransactionByHashMethod) == null) {
|
||||
QueryGrpc.getGetTransactionByHashMethod = getGetTransactionByHashMethod =
|
||||
io.grpc.MethodDescriptor.<bdledger.api.grpc.query.GetTransactionByHashRequest, bdledger.api.grpc.query.GetTransactionByHashResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionByHash"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.GetTransactionByHashRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.GetTransactionByHashResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("GetTransactionByHash"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetTransactionByHashMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest,
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse> getGetTransactionByBlockHashAndIndexMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetTransactionByBlockHashAndIndex",
|
||||
requestType = bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest.class,
|
||||
responseType = bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest,
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse> getGetTransactionByBlockHashAndIndexMethod() {
|
||||
io.grpc.MethodDescriptor<bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest, bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse> getGetTransactionByBlockHashAndIndexMethod;
|
||||
if ((getGetTransactionByBlockHashAndIndexMethod = QueryGrpc.getGetTransactionByBlockHashAndIndexMethod) == null) {
|
||||
synchronized (QueryGrpc.class) {
|
||||
if ((getGetTransactionByBlockHashAndIndexMethod = QueryGrpc.getGetTransactionByBlockHashAndIndexMethod) == null) {
|
||||
QueryGrpc.getGetTransactionByBlockHashAndIndexMethod = getGetTransactionByBlockHashAndIndexMethod =
|
||||
io.grpc.MethodDescriptor.<bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest, bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionByBlockHashAndIndex"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new QueryMethodDescriptorSupplier("GetTransactionByBlockHashAndIndex"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetTransactionByBlockHashAndIndexMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static QueryStub newStub(io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<QueryStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<QueryStub>() {
|
||||
@java.lang.Override
|
||||
public QueryStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new QueryStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return QueryStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static QueryBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<QueryBlockingStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<QueryBlockingStub>() {
|
||||
@java.lang.Override
|
||||
public QueryBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new QueryBlockingStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return QueryBlockingStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static QueryFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
io.grpc.stub.AbstractStub.StubFactory<QueryFutureStub> factory =
|
||||
new io.grpc.stub.AbstractStub.StubFactory<QueryFutureStub>() {
|
||||
@java.lang.Override
|
||||
public QueryFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new QueryFutureStub(channel, callOptions);
|
||||
}
|
||||
};
|
||||
return QueryFutureStub.newStub(factory, channel);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static abstract class QueryImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getBlocks(bdledger.api.grpc.query.BlocksRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetBlocksResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getGetBlocksMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void countBlocks(bdledger.api.grpc.query.BlocksRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.CountBlocksResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getCountBlocksMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getTransactions(bdledger.api.grpc.query.TransactionsRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetTransactionsResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getGetTransactionsMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void countTransactions(bdledger.api.grpc.query.TransactionsRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.CountTransactionsResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getCountTransactionsMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getBlockByHash(bdledger.api.grpc.query.GetBlockByHashRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetBlockByHashResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getGetBlockByHashMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getTransactionByHash(bdledger.api.grpc.query.GetTransactionByHashRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetTransactionByHashResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getGetTransactionByHashMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getTransactionByBlockHashAndIndex(bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getGetTransactionByBlockHashAndIndexMethod(), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getGetBlocksMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdledger.api.grpc.query.BlocksRequest,
|
||||
bdledger.api.grpc.query.GetBlocksResponse>(
|
||||
this, METHODID_GET_BLOCKS)))
|
||||
.addMethod(
|
||||
getCountBlocksMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdledger.api.grpc.query.BlocksRequest,
|
||||
bdledger.api.grpc.query.CountBlocksResponse>(
|
||||
this, METHODID_COUNT_BLOCKS)))
|
||||
.addMethod(
|
||||
getGetTransactionsMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdledger.api.grpc.query.TransactionsRequest,
|
||||
bdledger.api.grpc.query.GetTransactionsResponse>(
|
||||
this, METHODID_GET_TRANSACTIONS)))
|
||||
.addMethod(
|
||||
getCountTransactionsMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdledger.api.grpc.query.TransactionsRequest,
|
||||
bdledger.api.grpc.query.CountTransactionsResponse>(
|
||||
this, METHODID_COUNT_TRANSACTIONS)))
|
||||
.addMethod(
|
||||
getGetBlockByHashMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdledger.api.grpc.query.GetBlockByHashRequest,
|
||||
bdledger.api.grpc.query.GetBlockByHashResponse>(
|
||||
this, METHODID_GET_BLOCK_BY_HASH)))
|
||||
.addMethod(
|
||||
getGetTransactionByHashMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdledger.api.grpc.query.GetTransactionByHashRequest,
|
||||
bdledger.api.grpc.query.GetTransactionByHashResponse>(
|
||||
this, METHODID_GET_TRANSACTION_BY_HASH)))
|
||||
.addMethod(
|
||||
getGetTransactionByBlockHashAndIndexMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest,
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse>(
|
||||
this, METHODID_GET_TRANSACTION_BY_BLOCK_HASH_AND_INDEX)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class QueryStub extends io.grpc.stub.AbstractAsyncStub<QueryStub> {
|
||||
private QueryStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected QueryStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new QueryStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getBlocks(bdledger.api.grpc.query.BlocksRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetBlocksResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getGetBlocksMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void countBlocks(bdledger.api.grpc.query.BlocksRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.CountBlocksResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getCountBlocksMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getTransactions(bdledger.api.grpc.query.TransactionsRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetTransactionsResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getGetTransactionsMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void countTransactions(bdledger.api.grpc.query.TransactionsRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.CountTransactionsResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getCountTransactionsMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getBlockByHash(bdledger.api.grpc.query.GetBlockByHashRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetBlockByHashResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getGetBlockByHashMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getTransactionByHash(bdledger.api.grpc.query.GetTransactionByHashRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetTransactionByHashResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getGetTransactionByHashMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getTransactionByBlockHashAndIndex(bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest request,
|
||||
io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getGetTransactionByBlockHashAndIndexMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class QueryBlockingStub extends io.grpc.stub.AbstractBlockingStub<QueryBlockingStub> {
|
||||
private QueryBlockingStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected QueryBlockingStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new QueryBlockingStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdledger.api.grpc.query.GetBlocksResponse getBlocks(bdledger.api.grpc.query.BlocksRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetBlocksMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdledger.api.grpc.query.CountBlocksResponse countBlocks(bdledger.api.grpc.query.BlocksRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getCountBlocksMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdledger.api.grpc.query.GetTransactionsResponse getTransactions(bdledger.api.grpc.query.TransactionsRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetTransactionsMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdledger.api.grpc.query.CountTransactionsResponse countTransactions(bdledger.api.grpc.query.TransactionsRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getCountTransactionsMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdledger.api.grpc.query.GetBlockByHashResponse getBlockByHash(bdledger.api.grpc.query.GetBlockByHashRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetBlockByHashMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdledger.api.grpc.query.GetTransactionByHashResponse getTransactionByHash(bdledger.api.grpc.query.GetTransactionByHashRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetTransactionByHashMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse getTransactionByBlockHashAndIndex(bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetTransactionByBlockHashAndIndexMethod(), getCallOptions(), request);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class QueryFutureStub extends io.grpc.stub.AbstractFutureStub<QueryFutureStub> {
|
||||
private QueryFutureStub(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected QueryFutureStub build(
|
||||
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
|
||||
return new QueryFutureStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<bdledger.api.grpc.query.GetBlocksResponse> getBlocks(
|
||||
bdledger.api.grpc.query.BlocksRequest request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getGetBlocksMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<bdledger.api.grpc.query.CountBlocksResponse> countBlocks(
|
||||
bdledger.api.grpc.query.BlocksRequest request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getCountBlocksMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<bdledger.api.grpc.query.GetTransactionsResponse> getTransactions(
|
||||
bdledger.api.grpc.query.TransactionsRequest request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getGetTransactionsMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<bdledger.api.grpc.query.CountTransactionsResponse> countTransactions(
|
||||
bdledger.api.grpc.query.TransactionsRequest request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getCountTransactionsMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<bdledger.api.grpc.query.GetBlockByHashResponse> getBlockByHash(
|
||||
bdledger.api.grpc.query.GetBlockByHashRequest request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getGetBlockByHashMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<bdledger.api.grpc.query.GetTransactionByHashResponse> getTransactionByHash(
|
||||
bdledger.api.grpc.query.GetTransactionByHashRequest request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getGetTransactionByHashMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse> getTransactionByBlockHashAndIndex(
|
||||
bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getGetTransactionByBlockHashAndIndexMethod(), getCallOptions()), request);
|
||||
}
|
||||
}
|
||||
|
||||
private static final int METHODID_GET_BLOCKS = 0;
|
||||
private static final int METHODID_COUNT_BLOCKS = 1;
|
||||
private static final int METHODID_GET_TRANSACTIONS = 2;
|
||||
private static final int METHODID_COUNT_TRANSACTIONS = 3;
|
||||
private static final int METHODID_GET_BLOCK_BY_HASH = 4;
|
||||
private static final int METHODID_GET_TRANSACTION_BY_HASH = 5;
|
||||
private static final int METHODID_GET_TRANSACTION_BY_BLOCK_HASH_AND_INDEX = 6;
|
||||
|
||||
private static final class MethodHandlers<Req, Resp> implements
|
||||
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final QueryImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(QueryImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_GET_BLOCKS:
|
||||
serviceImpl.getBlocks((bdledger.api.grpc.query.BlocksRequest) request,
|
||||
(io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetBlocksResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_COUNT_BLOCKS:
|
||||
serviceImpl.countBlocks((bdledger.api.grpc.query.BlocksRequest) request,
|
||||
(io.grpc.stub.StreamObserver<bdledger.api.grpc.query.CountBlocksResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_GET_TRANSACTIONS:
|
||||
serviceImpl.getTransactions((bdledger.api.grpc.query.TransactionsRequest) request,
|
||||
(io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetTransactionsResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_COUNT_TRANSACTIONS:
|
||||
serviceImpl.countTransactions((bdledger.api.grpc.query.TransactionsRequest) request,
|
||||
(io.grpc.stub.StreamObserver<bdledger.api.grpc.query.CountTransactionsResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_GET_BLOCK_BY_HASH:
|
||||
serviceImpl.getBlockByHash((bdledger.api.grpc.query.GetBlockByHashRequest) request,
|
||||
(io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetBlockByHashResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_GET_TRANSACTION_BY_HASH:
|
||||
serviceImpl.getTransactionByHash((bdledger.api.grpc.query.GetTransactionByHashRequest) request,
|
||||
(io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetTransactionByHashResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_GET_TRANSACTION_BY_BLOCK_HASH_AND_INDEX:
|
||||
serviceImpl.getTransactionByBlockHashAndIndex((bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexRequest) request,
|
||||
(io.grpc.stub.StreamObserver<bdledger.api.grpc.query.GetTransactionByBlockHashAndIndexResponse>) responseObserver);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class QueryBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
QueryBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return bdledger.api.grpc.query.QueryProto.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("Query");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class QueryFileDescriptorSupplier
|
||||
extends QueryBaseDescriptorSupplier {
|
||||
QueryFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class QueryMethodDescriptorSupplier
|
||||
extends QueryBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
QueryMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (QueryGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new QueryFileDescriptorSupplier())
|
||||
.addMethod(getGetBlocksMethod())
|
||||
.addMethod(getCountBlocksMethod())
|
||||
.addMethod(getGetTransactionsMethod())
|
||||
.addMethod(getCountTransactionsMethod())
|
||||
.addMethod(getGetBlockByHashMethod())
|
||||
.addMethod(getGetTransactionByHashMethod())
|
||||
.addMethod(getGetTransactionByBlockHashAndIndexMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
241
src/main/java/bdledger/api/grpc/query/QueryProto.java
Normal file
241
src/main/java/bdledger/api/grpc/query/QueryProto.java
Normal file
@ -0,0 +1,241 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public final class QueryProto {
|
||||
private QueryProto() {}
|
||||
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_bdledger_api_TransactionFilter_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_TransactionFilter_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_BlockFilter_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_BlockFilter_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_BlocksRequest_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_BlocksRequest_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_GetBlocksResponse_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_GetBlocksResponse_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_CountBlocksResponse_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_CountBlocksResponse_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_TransactionsRequest_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_TransactionsRequest_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_GetTransactionsResponse_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_GetTransactionsResponse_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_CountTransactionsResponse_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_CountTransactionsResponse_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_GetBlockByHashRequest_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_GetBlockByHashRequest_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_GetBlockByHashResponse_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_GetBlockByHashResponse_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_GetTransactionByHashRequest_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_GetTransactionByHashRequest_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_GetTransactionByHashResponse_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_GetTransactionByHashResponse_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_GetTransactionByBlockHashAndIndexRequest_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable;
|
||||
static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_bdledger_api_GetTransactionByBlockHashAndIndexResponse_descriptor;
|
||||
static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_bdledger_api_GetTransactionByBlockHashAndIndexResponse_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\030bdledger/api/query.proto\022\014bdledger.api" +
|
||||
"\032\031bdledger/api/common.proto\"N\n\021Transacti" +
|
||||
"onFilter\022\014\n\004hash\030\001 \001(\014\022\014\n\004from\030\002 \001(\014\022\n\n\002" +
|
||||
"to\030\003 \001(\014\022\021\n\ttimestamp\030\004 \001(\014\".\n\013BlockFilt" +
|
||||
"er\022\014\n\004hash\030\001 \001(\014\022\021\n\ttimestamp\030\002 \001(\003\"{\n\rB" +
|
||||
"locksRequest\022\016\n\006ledger\030\001 \001(\t\022*\n\007filters\030" +
|
||||
"\002 \003(\0132\031.bdledger.api.BlockFilter\022\027\n\017star" +
|
||||
"t_timestamp\030\003 \001(\003\022\025\n\rend_timestamp\030\004 \001(\003" +
|
||||
"\"h\n\021GetBlocksResponse\022#\n\006blocks\030\001 \003(\0132\023." +
|
||||
"bdledger.api.Block\022\027\n\017start_timestamp\030\002 " +
|
||||
"\001(\003\022\025\n\rend_timestamp\030\003 \001(\003\"$\n\023CountBlock" +
|
||||
"sResponse\022\r\n\005count\030\001 \001(\004\"\207\001\n\023Transaction" +
|
||||
"sRequest\022\016\n\006ledger\030\001 \001(\t\0220\n\007filters\030\002 \003(" +
|
||||
"\0132\037.bdledger.api.TransactionFilter\022\027\n\017st" +
|
||||
"art_timestamp\030\003 \001(\003\022\025\n\rend_timestamp\030\004 \001" +
|
||||
"(\003\"z\n\027GetTransactionsResponse\022/\n\014transac" +
|
||||
"tions\030\001 \003(\0132\031.bdledger.api.Transaction\022\027" +
|
||||
"\n\017start_timestamp\030\002 \001(\003\022\025\n\rend_timestamp" +
|
||||
"\030\003 \001(\003\"*\n\031CountTransactionsResponse\022\r\n\005c" +
|
||||
"ount\030\001 \001(\004\"O\n\025GetBlockByHashRequest\022\016\n\006l" +
|
||||
"edger\030\001 \001(\t\022\014\n\004hash\030\002 \001(\014\022\030\n\020full_transa" +
|
||||
"ction\030\003 \001(\010\"<\n\026GetBlockByHashResponse\022\"\n" +
|
||||
"\005block\030\001 \001(\0132\023.bdledger.api.Block\";\n\033Get" +
|
||||
"TransactionByHashRequest\022\016\n\006ledger\030\001 \001(\t" +
|
||||
"\022\014\n\004hash\030\002 \001(\014\"N\n\034GetTransactionByHashRe" +
|
||||
"sponse\022.\n\013transaction\030\001 \001(\0132\031.bdledger.a" +
|
||||
"pi.Transaction\"]\n(GetTransactionByBlockH" +
|
||||
"ashAndIndexRequest\022\016\n\006ledger\030\001 \001(\t\022\022\n\nbl" +
|
||||
"ock_hash\030\002 \001(\014\022\r\n\005index\030\003 \001(\r\"[\n)GetTran" +
|
||||
"sactionByBlockHashAndIndexResponse\022.\n\013tr" +
|
||||
"ansaction\030\001 \001(\0132\031.bdledger.api.Transacti" +
|
||||
"on2\302\005\n\005Query\022I\n\tGetBlocks\022\033.bdledger.api" +
|
||||
".BlocksRequest\032\037.bdledger.api.GetBlocksR" +
|
||||
"esponse\022M\n\013CountBlocks\022\033.bdledger.api.Bl" +
|
||||
"ocksRequest\032!.bdledger.api.CountBlocksRe" +
|
||||
"sponse\022[\n\017GetTransactions\022!.bdledger.api" +
|
||||
".TransactionsRequest\032%.bdledger.api.GetT" +
|
||||
"ransactionsResponse\022_\n\021CountTransactions" +
|
||||
"\022!.bdledger.api.TransactionsRequest\032\'.bd" +
|
||||
"ledger.api.CountTransactionsResponse\022[\n\016" +
|
||||
"GetBlockByHash\022#.bdledger.api.GetBlockBy" +
|
||||
"HashRequest\032$.bdledger.api.GetBlockByHas" +
|
||||
"hResponse\022m\n\024GetTransactionByHash\022).bdle" +
|
||||
"dger.api.GetTransactionByHashRequest\032*.b" +
|
||||
"dledger.api.GetTransactionByHashResponse" +
|
||||
"\022\224\001\n!GetTransactionByBlockHashAndIndex\0226" +
|
||||
".bdledger.api.GetTransactionByBlockHashA" +
|
||||
"ndIndexRequest\0327.bdledger.api.GetTransac" +
|
||||
"tionByBlockHashAndIndexResponseBO\n\027bdled" +
|
||||
"ger.api.grpc.queryB\nQueryProtoP\001Z&bdware" +
|
||||
".org/bdledger/pkg/api/grpc/protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
bdledger.api.grpc.common.CommonProto.getDescriptor(),
|
||||
});
|
||||
internal_static_bdledger_api_TransactionFilter_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_bdledger_api_TransactionFilter_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_TransactionFilter_descriptor,
|
||||
new java.lang.String[] { "Hash", "From", "To", "Timestamp", });
|
||||
internal_static_bdledger_api_BlockFilter_descriptor =
|
||||
getDescriptor().getMessageTypes().get(1);
|
||||
internal_static_bdledger_api_BlockFilter_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_BlockFilter_descriptor,
|
||||
new java.lang.String[] { "Hash", "Timestamp", });
|
||||
internal_static_bdledger_api_BlocksRequest_descriptor =
|
||||
getDescriptor().getMessageTypes().get(2);
|
||||
internal_static_bdledger_api_BlocksRequest_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_BlocksRequest_descriptor,
|
||||
new java.lang.String[] { "Ledger", "Filters", "StartTimestamp", "EndTimestamp", });
|
||||
internal_static_bdledger_api_GetBlocksResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(3);
|
||||
internal_static_bdledger_api_GetBlocksResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_GetBlocksResponse_descriptor,
|
||||
new java.lang.String[] { "Blocks", "StartTimestamp", "EndTimestamp", });
|
||||
internal_static_bdledger_api_CountBlocksResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(4);
|
||||
internal_static_bdledger_api_CountBlocksResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_CountBlocksResponse_descriptor,
|
||||
new java.lang.String[] { "Count", });
|
||||
internal_static_bdledger_api_TransactionsRequest_descriptor =
|
||||
getDescriptor().getMessageTypes().get(5);
|
||||
internal_static_bdledger_api_TransactionsRequest_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_TransactionsRequest_descriptor,
|
||||
new java.lang.String[] { "Ledger", "Filters", "StartTimestamp", "EndTimestamp", });
|
||||
internal_static_bdledger_api_GetTransactionsResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(6);
|
||||
internal_static_bdledger_api_GetTransactionsResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_GetTransactionsResponse_descriptor,
|
||||
new java.lang.String[] { "Transactions", "StartTimestamp", "EndTimestamp", });
|
||||
internal_static_bdledger_api_CountTransactionsResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(7);
|
||||
internal_static_bdledger_api_CountTransactionsResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_CountTransactionsResponse_descriptor,
|
||||
new java.lang.String[] { "Count", });
|
||||
internal_static_bdledger_api_GetBlockByHashRequest_descriptor =
|
||||
getDescriptor().getMessageTypes().get(8);
|
||||
internal_static_bdledger_api_GetBlockByHashRequest_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_GetBlockByHashRequest_descriptor,
|
||||
new java.lang.String[] { "Ledger", "Hash", "FullTransaction", });
|
||||
internal_static_bdledger_api_GetBlockByHashResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(9);
|
||||
internal_static_bdledger_api_GetBlockByHashResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_GetBlockByHashResponse_descriptor,
|
||||
new java.lang.String[] { "Block", });
|
||||
internal_static_bdledger_api_GetTransactionByHashRequest_descriptor =
|
||||
getDescriptor().getMessageTypes().get(10);
|
||||
internal_static_bdledger_api_GetTransactionByHashRequest_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_GetTransactionByHashRequest_descriptor,
|
||||
new java.lang.String[] { "Ledger", "Hash", });
|
||||
internal_static_bdledger_api_GetTransactionByHashResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(11);
|
||||
internal_static_bdledger_api_GetTransactionByHashResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_GetTransactionByHashResponse_descriptor,
|
||||
new java.lang.String[] { "Transaction", });
|
||||
internal_static_bdledger_api_GetTransactionByBlockHashAndIndexRequest_descriptor =
|
||||
getDescriptor().getMessageTypes().get(12);
|
||||
internal_static_bdledger_api_GetTransactionByBlockHashAndIndexRequest_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_GetTransactionByBlockHashAndIndexRequest_descriptor,
|
||||
new java.lang.String[] { "Ledger", "BlockHash", "Index", });
|
||||
internal_static_bdledger_api_GetTransactionByBlockHashAndIndexResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(13);
|
||||
internal_static_bdledger_api_GetTransactionByBlockHashAndIndexResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_bdledger_api_GetTransactionByBlockHashAndIndexResponse_descriptor,
|
||||
new java.lang.String[] { "Transaction", });
|
||||
bdledger.api.grpc.common.CommonProto.getDescriptor();
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
@ -1,22 +1,36 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdchain/api/ac_chain.proto
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdchain.api.grpc.acchain;
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.acchain.GetBlockByNumberRequest}
|
||||
* <pre>
|
||||
* repeated Transaction/BlockFilters are combined by "&&"(and) operator;
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code bdledger.api.TransactionFilter}
|
||||
*/
|
||||
public final class GetBlockByNumberRequest extends
|
||||
public final class TransactionFilter extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:bdchain.api.acchain.GetBlockByNumberRequest)
|
||||
GetBlockByNumberRequestOrBuilder {
|
||||
// @@protoc_insertion_point(message_implements:bdledger.api.TransactionFilter)
|
||||
TransactionFilterOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GetBlockByNumberRequest.newBuilder() to construct.
|
||||
private GetBlockByNumberRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
// Use TransactionFilter.newBuilder() to construct.
|
||||
private TransactionFilter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private GetBlockByNumberRequest() {
|
||||
ledger_ = "";
|
||||
private TransactionFilter() {
|
||||
hash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
from_ = com.google.protobuf.ByteString.EMPTY;
|
||||
to_ = com.google.protobuf.ByteString.EMPTY;
|
||||
timestamp_ = com.google.protobuf.ByteString.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new TransactionFilter();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@ -24,7 +38,7 @@ private static final long serialVersionUID = 0L;
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private GetBlockByNumberRequest(
|
||||
private TransactionFilter(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
@ -32,7 +46,6 @@ private static final long serialVersionUID = 0L;
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
int mutable_bitField0_ = 0;
|
||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
||||
try {
|
||||
@ -44,19 +57,23 @@ private static final long serialVersionUID = 0L;
|
||||
done = true;
|
||||
break;
|
||||
case 10: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
|
||||
ledger_ = s;
|
||||
hash_ = input.readBytes();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
case 18: {
|
||||
|
||||
number_ = input.readUInt64();
|
||||
from_ = input.readBytes();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
case 26: {
|
||||
|
||||
fullTransaction_ = input.readBool();
|
||||
to_ = input.readBytes();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
|
||||
timestamp_ = input.readBytes();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
@ -80,67 +97,55 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByNumberRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_TransactionFilter_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByNumberRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_TransactionFilter_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.GetBlockByNumberRequest.class, bdchain.api.grpc.acchain.GetBlockByNumberRequest.Builder.class);
|
||||
bdledger.api.grpc.query.TransactionFilter.class, bdledger.api.grpc.query.TransactionFilter.Builder.class);
|
||||
}
|
||||
|
||||
public static final int LEDGER_FIELD_NUMBER = 1;
|
||||
private volatile java.lang.Object ledger_;
|
||||
public static final int HASH_FIELD_NUMBER = 1;
|
||||
private com.google.protobuf.ByteString hash_;
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
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 com.google.protobuf.ByteString getHash() {
|
||||
return hash_;
|
||||
}
|
||||
|
||||
public static final int NUMBER_FIELD_NUMBER = 2;
|
||||
private long number_;
|
||||
public static final int FROM_FIELD_NUMBER = 2;
|
||||
private com.google.protobuf.ByteString from_;
|
||||
/**
|
||||
* <code>uint64 number = 2;</code>
|
||||
* <code>bytes from = 2;</code>
|
||||
* @return The from.
|
||||
*/
|
||||
public long getNumber() {
|
||||
return number_;
|
||||
public com.google.protobuf.ByteString getFrom() {
|
||||
return from_;
|
||||
}
|
||||
|
||||
public static final int FULL_TRANSACTION_FIELD_NUMBER = 3;
|
||||
private boolean fullTransaction_;
|
||||
public static final int TO_FIELD_NUMBER = 3;
|
||||
private com.google.protobuf.ByteString to_;
|
||||
/**
|
||||
* <code>bool full_transaction = 3;</code>
|
||||
* <code>bytes to = 3;</code>
|
||||
* @return The to.
|
||||
*/
|
||||
public boolean getFullTransaction() {
|
||||
return fullTransaction_;
|
||||
public com.google.protobuf.ByteString getTo() {
|
||||
return to_;
|
||||
}
|
||||
|
||||
public static final int TIMESTAMP_FIELD_NUMBER = 4;
|
||||
private com.google.protobuf.ByteString timestamp_;
|
||||
/**
|
||||
* <code>bytes timestamp = 4;</code>
|
||||
* @return The timestamp.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getTimestamp() {
|
||||
return timestamp_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@ -157,14 +162,17 @@ private static final long serialVersionUID = 0L;
|
||||
@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 (!hash_.isEmpty()) {
|
||||
output.writeBytes(1, hash_);
|
||||
}
|
||||
if (number_ != 0L) {
|
||||
output.writeUInt64(2, number_);
|
||||
if (!from_.isEmpty()) {
|
||||
output.writeBytes(2, from_);
|
||||
}
|
||||
if (fullTransaction_ != false) {
|
||||
output.writeBool(3, fullTransaction_);
|
||||
if (!to_.isEmpty()) {
|
||||
output.writeBytes(3, to_);
|
||||
}
|
||||
if (!timestamp_.isEmpty()) {
|
||||
output.writeBytes(4, timestamp_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@ -175,16 +183,21 @@ private static final long serialVersionUID = 0L;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!getLedgerBytes().isEmpty()) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ledger_);
|
||||
}
|
||||
if (number_ != 0L) {
|
||||
if (!hash_.isEmpty()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt64Size(2, number_);
|
||||
.computeBytesSize(1, hash_);
|
||||
}
|
||||
if (fullTransaction_ != false) {
|
||||
if (!from_.isEmpty()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(3, fullTransaction_);
|
||||
.computeBytesSize(2, from_);
|
||||
}
|
||||
if (!to_.isEmpty()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBytesSize(3, to_);
|
||||
}
|
||||
if (!timestamp_.isEmpty()) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBytesSize(4, timestamp_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@ -196,17 +209,19 @@ private static final long serialVersionUID = 0L;
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof bdchain.api.grpc.acchain.GetBlockByNumberRequest)) {
|
||||
if (!(obj instanceof bdledger.api.grpc.query.TransactionFilter)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
bdchain.api.grpc.acchain.GetBlockByNumberRequest other = (bdchain.api.grpc.acchain.GetBlockByNumberRequest) obj;
|
||||
bdledger.api.grpc.query.TransactionFilter other = (bdledger.api.grpc.query.TransactionFilter) obj;
|
||||
|
||||
if (!getLedger()
|
||||
.equals(other.getLedger())) return false;
|
||||
if (getNumber()
|
||||
!= other.getNumber()) return false;
|
||||
if (getFullTransaction()
|
||||
!= other.getFullTransaction()) return false;
|
||||
if (!getHash()
|
||||
.equals(other.getHash())) return false;
|
||||
if (!getFrom()
|
||||
.equals(other.getFrom())) return false;
|
||||
if (!getTo()
|
||||
.equals(other.getTo())) return false;
|
||||
if (!getTimestamp()
|
||||
.equals(other.getTimestamp())) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@ -218,82 +233,82 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + LEDGER_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getLedger().hashCode();
|
||||
hash = (37 * hash) + NUMBER_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
|
||||
getNumber());
|
||||
hash = (37 * hash) + FULL_TRANSACTION_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
||||
getFullTransaction());
|
||||
hash = (37 * hash) + HASH_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getHash().hashCode();
|
||||
hash = (37 * hash) + FROM_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getFrom().hashCode();
|
||||
hash = (37 * hash) + TO_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTo().hashCode();
|
||||
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTimestamp().hashCode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.TransactionFilter parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.TransactionFilter 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.acchain.GetBlockByNumberRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.TransactionFilter parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.TransactionFilter 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.acchain.GetBlockByNumberRequest parseFrom(byte[] data)
|
||||
public static bdledger.api.grpc.query.TransactionFilter parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.TransactionFilter parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.query.TransactionFilter parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.TransactionFilter 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.acchain.GetBlockByNumberRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
public static bdledger.api.grpc.query.TransactionFilter parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseDelimitedFrom(
|
||||
public static bdledger.api.grpc.query.TransactionFilter 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.acchain.GetBlockByNumberRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.TransactionFilter parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest parseFrom(
|
||||
public static bdledger.api.grpc.query.TransactionFilter parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
@ -306,7 +321,7 @@ private static final long serialVersionUID = 0L;
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(bdchain.api.grpc.acchain.GetBlockByNumberRequest prototype) {
|
||||
public static Builder newBuilder(bdledger.api.grpc.query.TransactionFilter prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
@ -322,26 +337,30 @@ private static final long serialVersionUID = 0L;
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code bdchain.api.acchain.GetBlockByNumberRequest}
|
||||
* <pre>
|
||||
* repeated Transaction/BlockFilters are combined by "&&"(and) operator;
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code bdledger.api.TransactionFilter}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:bdchain.api.acchain.GetBlockByNumberRequest)
|
||||
bdchain.api.grpc.acchain.GetBlockByNumberRequestOrBuilder {
|
||||
// @@protoc_insertion_point(builder_implements:bdledger.api.TransactionFilter)
|
||||
bdledger.api.grpc.query.TransactionFilterOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByNumberRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_TransactionFilter_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByNumberRequest_fieldAccessorTable
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_TransactionFilter_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
bdchain.api.grpc.acchain.GetBlockByNumberRequest.class, bdchain.api.grpc.acchain.GetBlockByNumberRequest.Builder.class);
|
||||
bdledger.api.grpc.query.TransactionFilter.class, bdledger.api.grpc.query.TransactionFilter.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using bdchain.api.grpc.acchain.GetBlockByNumberRequest.newBuilder()
|
||||
// Construct using bdledger.api.grpc.query.TransactionFilter.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
@ -359,11 +378,13 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
ledger_ = "";
|
||||
hash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
|
||||
number_ = 0L;
|
||||
from_ = com.google.protobuf.ByteString.EMPTY;
|
||||
|
||||
fullTransaction_ = false;
|
||||
to_ = com.google.protobuf.ByteString.EMPTY;
|
||||
|
||||
timestamp_ = com.google.protobuf.ByteString.EMPTY;
|
||||
|
||||
return this;
|
||||
}
|
||||
@ -371,17 +392,17 @@ private static final long serialVersionUID = 0L;
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return bdchain.api.grpc.acchain.AccountingChainProto.internal_static_bdchain_api_acchain_GetBlockByNumberRequest_descriptor;
|
||||
return bdledger.api.grpc.query.QueryProto.internal_static_bdledger_api_TransactionFilter_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetBlockByNumberRequest getDefaultInstanceForType() {
|
||||
return bdchain.api.grpc.acchain.GetBlockByNumberRequest.getDefaultInstance();
|
||||
public bdledger.api.grpc.query.TransactionFilter getDefaultInstanceForType() {
|
||||
return bdledger.api.grpc.query.TransactionFilter.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetBlockByNumberRequest build() {
|
||||
bdchain.api.grpc.acchain.GetBlockByNumberRequest result = buildPartial();
|
||||
public bdledger.api.grpc.query.TransactionFilter build() {
|
||||
bdledger.api.grpc.query.TransactionFilter result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
@ -389,11 +410,12 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
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_;
|
||||
public bdledger.api.grpc.query.TransactionFilter buildPartial() {
|
||||
bdledger.api.grpc.query.TransactionFilter result = new bdledger.api.grpc.query.TransactionFilter(this);
|
||||
result.hash_ = hash_;
|
||||
result.from_ = from_;
|
||||
result.to_ = to_;
|
||||
result.timestamp_ = timestamp_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@ -432,25 +454,27 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof bdchain.api.grpc.acchain.GetBlockByNumberRequest) {
|
||||
return mergeFrom((bdchain.api.grpc.acchain.GetBlockByNumberRequest)other);
|
||||
if (other instanceof bdledger.api.grpc.query.TransactionFilter) {
|
||||
return mergeFrom((bdledger.api.grpc.query.TransactionFilter)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
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();
|
||||
public Builder mergeFrom(bdledger.api.grpc.query.TransactionFilter other) {
|
||||
if (other == bdledger.api.grpc.query.TransactionFilter.getDefaultInstance()) return this;
|
||||
if (other.getHash() != com.google.protobuf.ByteString.EMPTY) {
|
||||
setHash(other.getHash());
|
||||
}
|
||||
if (other.getNumber() != 0L) {
|
||||
setNumber(other.getNumber());
|
||||
if (other.getFrom() != com.google.protobuf.ByteString.EMPTY) {
|
||||
setFrom(other.getFrom());
|
||||
}
|
||||
if (other.getFullTransaction() != false) {
|
||||
setFullTransaction(other.getFullTransaction());
|
||||
if (other.getTo() != com.google.protobuf.ByteString.EMPTY) {
|
||||
setTo(other.getTo());
|
||||
}
|
||||
if (other.getTimestamp() != com.google.protobuf.ByteString.EMPTY) {
|
||||
setTimestamp(other.getTimestamp());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
@ -467,11 +491,11 @@ private static final long serialVersionUID = 0L;
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
bdchain.api.grpc.acchain.GetBlockByNumberRequest parsedMessage = null;
|
||||
bdledger.api.grpc.query.TransactionFilter parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (bdchain.api.grpc.acchain.GetBlockByNumberRequest) e.getUnfinishedMessage();
|
||||
parsedMessage = (bdledger.api.grpc.query.TransactionFilter) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
@ -481,123 +505,134 @@ private static final long serialVersionUID = 0L;
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object ledger_ = "";
|
||||
private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
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;
|
||||
}
|
||||
public com.google.protobuf.ByteString getHash() {
|
||||
return hash_;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @param value The hash to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
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) {
|
||||
public Builder setHash(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
ledger_ = value;
|
||||
hash_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearLedger() {
|
||||
public Builder clearHash() {
|
||||
|
||||
ledger_ = getDefaultInstance().getLedger();
|
||||
hash_ = getDefaultInstance().getHash();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.ByteString from_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* <code>bytes from = 2;</code>
|
||||
* @return The from.
|
||||
*/
|
||||
public Builder setLedgerBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
public com.google.protobuf.ByteString getFrom() {
|
||||
return from_;
|
||||
}
|
||||
/**
|
||||
* <code>bytes from = 2;</code>
|
||||
* @param value The from to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setFrom(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
ledger_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private long number_ ;
|
||||
/**
|
||||
* <code>uint64 number = 2;</code>
|
||||
*/
|
||||
public long getNumber() {
|
||||
return number_;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 number = 2;</code>
|
||||
*/
|
||||
public Builder setNumber(long value) {
|
||||
|
||||
number_ = value;
|
||||
from_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint64 number = 2;</code>
|
||||
* <code>bytes from = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearNumber() {
|
||||
public Builder clearFrom() {
|
||||
|
||||
number_ = 0L;
|
||||
from_ = getDefaultInstance().getFrom();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private boolean fullTransaction_ ;
|
||||
private com.google.protobuf.ByteString to_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>bool full_transaction = 3;</code>
|
||||
* <code>bytes to = 3;</code>
|
||||
* @return The to.
|
||||
*/
|
||||
public boolean getFullTransaction() {
|
||||
return fullTransaction_;
|
||||
public com.google.protobuf.ByteString getTo() {
|
||||
return to_;
|
||||
}
|
||||
/**
|
||||
* <code>bool full_transaction = 3;</code>
|
||||
* <code>bytes to = 3;</code>
|
||||
* @param value The to to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setFullTransaction(boolean value) {
|
||||
public Builder setTo(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
fullTransaction_ = value;
|
||||
to_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bool full_transaction = 3;</code>
|
||||
* <code>bytes to = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearFullTransaction() {
|
||||
public Builder clearTo() {
|
||||
|
||||
fullTransaction_ = false;
|
||||
to_ = getDefaultInstance().getTo();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.ByteString timestamp_ = com.google.protobuf.ByteString.EMPTY;
|
||||
/**
|
||||
* <code>bytes timestamp = 4;</code>
|
||||
* @return The timestamp.
|
||||
*/
|
||||
public com.google.protobuf.ByteString getTimestamp() {
|
||||
return timestamp_;
|
||||
}
|
||||
/**
|
||||
* <code>bytes timestamp = 4;</code>
|
||||
* @param value The timestamp to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTimestamp(com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
timestamp_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>bytes timestamp = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTimestamp() {
|
||||
|
||||
timestamp_ = getDefaultInstance().getTimestamp();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@ -614,41 +649,41 @@ private static final long serialVersionUID = 0L;
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:bdchain.api.acchain.GetBlockByNumberRequest)
|
||||
// @@protoc_insertion_point(builder_scope:bdledger.api.TransactionFilter)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:bdchain.api.acchain.GetBlockByNumberRequest)
|
||||
private static final bdchain.api.grpc.acchain.GetBlockByNumberRequest DEFAULT_INSTANCE;
|
||||
// @@protoc_insertion_point(class_scope:bdledger.api.TransactionFilter)
|
||||
private static final bdledger.api.grpc.query.TransactionFilter DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new bdchain.api.grpc.acchain.GetBlockByNumberRequest();
|
||||
DEFAULT_INSTANCE = new bdledger.api.grpc.query.TransactionFilter();
|
||||
}
|
||||
|
||||
public static bdchain.api.grpc.acchain.GetBlockByNumberRequest getDefaultInstance() {
|
||||
public static bdledger.api.grpc.query.TransactionFilter getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<GetBlockByNumberRequest>
|
||||
PARSER = new com.google.protobuf.AbstractParser<GetBlockByNumberRequest>() {
|
||||
private static final com.google.protobuf.Parser<TransactionFilter>
|
||||
PARSER = new com.google.protobuf.AbstractParser<TransactionFilter>() {
|
||||
@java.lang.Override
|
||||
public GetBlockByNumberRequest parsePartialFrom(
|
||||
public TransactionFilter parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new GetBlockByNumberRequest(input, extensionRegistry);
|
||||
return new TransactionFilter(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<GetBlockByNumberRequest> parser() {
|
||||
public static com.google.protobuf.Parser<TransactionFilter> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<GetBlockByNumberRequest> getParserForType() {
|
||||
public com.google.protobuf.Parser<TransactionFilter> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public bdchain.api.grpc.acchain.GetBlockByNumberRequest getDefaultInstanceForType() {
|
||||
public bdledger.api.grpc.query.TransactionFilter getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
@ -0,0 +1,33 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface TransactionFilterOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.TransactionFilter)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>bytes hash = 1;</code>
|
||||
* @return The hash.
|
||||
*/
|
||||
com.google.protobuf.ByteString getHash();
|
||||
|
||||
/**
|
||||
* <code>bytes from = 2;</code>
|
||||
* @return The from.
|
||||
*/
|
||||
com.google.protobuf.ByteString getFrom();
|
||||
|
||||
/**
|
||||
* <code>bytes to = 3;</code>
|
||||
* @return The to.
|
||||
*/
|
||||
com.google.protobuf.ByteString getTo();
|
||||
|
||||
/**
|
||||
* <code>bytes timestamp = 4;</code>
|
||||
* @return The timestamp.
|
||||
*/
|
||||
com.google.protobuf.ByteString getTimestamp();
|
||||
}
|
1043
src/main/java/bdledger/api/grpc/query/TransactionsRequest.java
Normal file
1043
src/main/java/bdledger/api/grpc/query/TransactionsRequest.java
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,61 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bdledger/api/query.proto
|
||||
|
||||
package bdledger.api.grpc.query;
|
||||
|
||||
public interface TransactionsRequestOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:bdledger.api.TransactionsRequest)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The ledger.
|
||||
*/
|
||||
java.lang.String getLedger();
|
||||
/**
|
||||
* <code>string ledger = 1;</code>
|
||||
* @return The bytes for ledger.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getLedgerBytes();
|
||||
|
||||
/**
|
||||
* <code>repeated .bdledger.api.TransactionFilter filters = 2;</code>
|
||||
*/
|
||||
java.util.List<bdledger.api.grpc.query.TransactionFilter>
|
||||
getFiltersList();
|
||||
/**
|
||||
* <code>repeated .bdledger.api.TransactionFilter filters = 2;</code>
|
||||
*/
|
||||
bdledger.api.grpc.query.TransactionFilter getFilters(int index);
|
||||
/**
|
||||
* <code>repeated .bdledger.api.TransactionFilter filters = 2;</code>
|
||||
*/
|
||||
int getFiltersCount();
|
||||
/**
|
||||
* <code>repeated .bdledger.api.TransactionFilter filters = 2;</code>
|
||||
*/
|
||||
java.util.List<? extends bdledger.api.grpc.query.TransactionFilterOrBuilder>
|
||||
getFiltersOrBuilderList();
|
||||
/**
|
||||
* <code>repeated .bdledger.api.TransactionFilter filters = 2;</code>
|
||||
*/
|
||||
bdledger.api.grpc.query.TransactionFilterOrBuilder getFiltersOrBuilder(
|
||||
int index);
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* required
|
||||
* </pre>
|
||||
*
|
||||
* <code>int64 start_timestamp = 3;</code>
|
||||
* @return The startTimestamp.
|
||||
*/
|
||||
long getStartTimestamp();
|
||||
|
||||
/**
|
||||
* <code>int64 end_timestamp = 4;</code>
|
||||
* @return The endTimestamp.
|
||||
*/
|
||||
long getEndTimestamp();
|
||||
}
|
@ -28,6 +28,13 @@ private static final long serialVersionUID = 0L;
|
||||
private Empty() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new Empty();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
|
@ -34,18 +34,10 @@ public final class EmptyProto {
|
||||
"/ptypes/empty\370\001\001\242\002\003GPB\252\002\036Google.Protobuf" +
|
||||
".WellKnownTypesb\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
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
}, assigner);
|
||||
});
|
||||
internal_static_google_protobuf_Empty_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_google_protobuf_Empty_fieldAccessorTable = new
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 70d4bb0f0c3a88f2ef459dfabdf521bf941dd667
|
||||
Subproject commit 08f427899ce6a20196b2969d09d152c1b6051306
|
@ -1,4 +1,4 @@
|
||||
package bdchain.api;
|
||||
package bdledger.api;
|
||||
|
||||
import bdchain.api.grpc.acchain.Block;
|
||||
import bdchain.api.grpc.acchain.Transaction;
|
@ -1,4 +1,4 @@
|
||||
package bdchain.api;
|
||||
package bdledger.api;
|
||||
|
||||
import bdchain.api.grpc.txledger.GetLedgersResponse;
|
||||
import bdchain.api.grpc.common.TransactionType;
|
Loading…
x
Reference in New Issue
Block a user