diff --git a/build.gradle b/build.gradle
old mode 100755
new mode 100644
index 23a29cef4ca..445bd979d12
--- a/build.gradle
+++ b/build.gradle
@@ -1,363 +1,16 @@
-buildscript {
- repositories {
- mavenCentral()
- jcenter()
- maven { url 'https://jitpack.io' }
- }
- dependencies {
- classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
- classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
- }
-}
-plugins {
- id "org.sonarqube" version "2.6"
-}
-
-group 'org.tron'
-version '1.0.0'
-
-apply plugin: 'java'
-apply plugin: 'com.google.protobuf'
-apply plugin: 'application'
-apply plugin: 'checkstyle'
-apply plugin: 'com.github.johnrengelman.shadow'
-apply plugin: "jacoco"
-apply plugin: 'maven-publish'
-
-jar.enabled = false
-shadowJar.enabled = true
-
-sourceCompatibility = 1.8
-[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
-mainClassName = 'org.tron.program.FullNode'
-
-publishing {
- publications {
- mavenJava(MavenPublication) {
- from components.java
- artifact sourceJar
- }
- }
- repositories {
- mavenLocal()
- }
-}
-
-task sourceJar(type: Jar, dependsOn: classes) {
- classifier 'sources'
- from sourceSets.main.allSource
-}
-
-repositories {
- mavenLocal()
- mavenCentral()
- maven { url 'http://repo.spring.io/plugins-release' }
- // maven { url 'https://maven.aliyun.com/nexus/content/repositories/central/' }
- maven { url 'https://jitpack.io' }
-}
-def versions = [
- checkstyle: '8.7',
-]
-
-jacoco {
- toolVersion = "0.8.1"
-}
-
-
-configurations {
- checkstyleConfig
-
-}
-
-configurations.getByName('checkstyleConfig') {
- transitive = false
-}
-
-static def isWindows() {
- return org.gradle.internal.os.OperatingSystem.current().isWindows()
-}
-
-if (isWindows()) {
- ext {
- leveldbGroup = "org.ethereum"
- leveldbName = "leveldbjni-all"
- leveldbVersion = "1.18.3"
- }
-} else {
- ext {
- leveldbGroup = "org.fusesource.leveldbjni"
- leveldbName = "leveldbjni-all"
- leveldbVersion = "1.8"
- }
-}
-
-task version(type: Exec) {
- commandLine 'bash', '-c', './ver.sh'
-}
-
-dependencies {
- //local libraries
- compile fileTree(dir: 'libs', include: '*.jar')
- // end local libraries
- testCompile group: 'junit', name: 'junit', version: '4.12'
- testCompile group: 'org.mockito', name: 'mockito-core', version: '2.13.0'
- testCompile group: 'org.hamcrest', name: 'hamcrest-junit', version: '1.0.0.1'
-
- testCompile group: 'org.testng', name: 'testng', version: '6.14.3'
-
- compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
- compile group: 'org.slf4j', name: 'jcl-over-slf4j', version: '1.7.25'
- compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
-
-// compile "org.projectlombok:lombok:1.16.18"
- compile group: 'org.projectlombok', name: 'lombok', version: '1.18.2'
-
- compile group: 'commons-codec', name: 'commons-codec', version: '1.11'
-
- compile "com.madgag.spongycastle:core:1.58.0.0"
- compile "com.madgag.spongycastle:prov:1.58.0.0"
-
- compile group: 'com.google.guava', name: 'guava', version: '24.1-jre'
-
- compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.4.0'
- compile group: 'com.google.protobuf', name: 'protobuf-java-util', version: '3.4.0'
-
- compile "org.iq80.leveldb:leveldb:0.7"
-
- compile group: 'org.rocksdb', name: 'rocksdbjni', version: '5.15.10'
-
- compile group: leveldbGroup, name: leveldbName, version: leveldbVersion
-
- compile "org.apache.commons:commons-collections4:4.0"
-
- compile group: 'com.typesafe', name: 'config', version: '1.3.2'
-
- compile "com.google.code.findbugs:jsr305:3.0.0"
-
- compile "com.cedarsoftware:java-util:1.8.0"
-
- compile "org.apache.commons:commons-lang3:3.4"
-
- compile group: 'org.springframework', name: 'spring-context', version: '4.2.0.RELEASE'
- compile group: 'org.springframework', name: 'spring-tx', version: '4.2.0.RELEASE'
-
- compile group: 'com.beust', name: 'jcommander', version: '1.72'
-
- compile group: 'junit', name: 'junit', version: '4.12'
-
- compile group: 'net.jcip', name: 'jcip-annotations', version: '1.0'
-
- compile group: 'org.fusesource.jansi', name: 'jansi', version: '1.16'
- compile group: 'com.alibaba', name: 'fastjson', version: '1.2.44'
-
- compile group: 'com.google.inject', name: 'guice', version: '4.1.0'
-
- compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.5'
- compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.5'
- compile group: 'org.apache.commons', name: 'commons-math', version: '2.2'
-
- compile group: 'joda-time', name: 'joda-time', version: '2.3'
-
- compile group: 'io.dropwizard.metrics', name: 'metrics-core', version: '3.1.2'
-
-// checkstyleConfig "com.puppycrawl.tools:checkstyle:${versions.checkstyle}"
- // google grpc
- compile group: 'io.grpc', name: 'grpc-netty', version: '1.14.0'
- compile group: 'io.grpc', name: 'grpc-protobuf', version: '1.14.0'
- compile group: 'io.grpc', name: 'grpc-stub', version: '1.14.0'
- // end google grpc
-
- compile group: 'com.carrotsearch', name: 'java-sizeof', version: '0.0.5'
-
- compile 'org.aspectj:aspectjrt:1.8.13'
- compile 'org.aspectj:aspectjweaver:1.8.13'
- compile 'org.aspectj:aspectjtools:1.8.13'
- compile 'com.googlecode.cqengine:cqengine:2.12.4'
- compile group: 'com.google.api.grpc', name: 'googleapis-common-protos', version: '0.0.3'
-
- // http
- compile 'org.eclipse.jetty:jetty-server:9.4.11.v20180605'
- compile 'org.eclipse.jetty:jetty-servlet:9.4.11.v20180605'
- compile 'com.alibaba:fastjson:1.2.47'
- compile group: 'org.apache.httpcomponents', name: 'httpasyncclient', version: '4.1.1'
- // end http
-
- compile "io.vavr:vavr:0.9.2"
- compile group: 'org.pf4j', name: 'pf4j', version: '2.5.0'
-
- compile group: 'org.zeromq', name: 'jeromq', version: '0.5.0'
- compile 'com.github.tronprotocol:zksnark-java-sdk:master-SNAPSHOT'
- compile 'com.github.tronprotocol:chainbase:dynamicStore-SNAPSHOT'
-}
-
-check.dependsOn 'lint'
-
-//checkstyle {
-// toolVersion = "${versions.checkstyle}"
-// config = resources.text.fromArchiveEntry(configurations.checkstyleConfig, 'google_checks.xml')
-//
-//}
-checkstyle {
- toolVersion = "${versions.checkstyle}"
- configFile = file("config/checkstyle/checkStyleAll.xml")
-}
-
-
-checkstyleMain {
- source = 'src/main/java'
-}
-
-task lint(type: Checkstyle) {
- // Cleaning the old log because of the creation of the new ones (not sure if totaly needed)
- delete fileTree(dir: "${project.rootDir}/app/build/reports")
- source 'src'
- include '**/*.java'
- exclude 'main/gen/**'
- exclude 'test/**'
- // empty classpath
- classpath = files()
- //Failing the build
- ignoreFailures = false
-}
-
-tasks.matching { it instanceof Test }.all {
- testLogging.events = ["failed", "passed", "skipped"]
-}
-
-if (project.hasProperty("mainClass")) {
- mainClassName = mainClass
-}
-
-sourceSets {
- main {
- proto {
- srcDir 'src/main/protos'
- }
- java {
- srcDir 'src/main/gen'
- srcDir 'src/main/java'
- }
- }
-
-}
-
-protobuf {
- generatedFilesBaseDir = "$projectDir/src/"
- protoc {
- artifact = "com.google.protobuf:protoc:3.5.1-1"
- }
-
- plugins {
- grpc {
- artifact = 'io.grpc:protoc-gen-grpc-java:1.9.0'
- }
- }
- generateProtoTasks {
- all().each { task ->
- task.builtins {
- java { outputSubDir = "gen" }
- }
- }
- all()*.plugins {
- grpc {
- outputSubDir = "gen"
- }
- }
- }
-}
-
-run {
- if (project.hasProperty('witness')) {
- standardInput = System.in
- args = ['--witness']
- }
-}
-
-shadowJar {
- baseName = 'java-tron'
- classifier = null
- version = null
-}
-
-test {
- testLogging {
- exceptionFormat = 'full'
- }
- jacoco {
- append = true
- destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
- classDumpDir = file("$buildDir/jacoco/classpathdumps")
- }
- if (isWindows()) {
- exclude '**/ShieldedTransferActuatorTest.class'
- exclude '**/BackupDbUtilTest.class'
- exclude '**/ManagerTest.class'
- exclude 'org/tron/core/zksnark/**'
- }
-}
-
-task stest(type: Test) {
-
- useTestNG {
- suites(file('src/test/resources/testng.xml'))
- parallel 'tests'
- threadCount 4
-
- }
-
- testLogging {
- exceptionFormat = 'full'
- showStackTraces = "true"
- }
-
- jacoco {
- append = false
- destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
- classDumpDir = file("$buildDir/jacoco/classpathdumps")
- }
-}
-
-task dailyBuild(type: Test) {
- useTestNG {
- suites(file('src/test/resources/daily-build.xml'))
- parallel 'tests'
- threadCount 1
- }
-}
-
-
-jacocoTestReport {
- reports {
- xml.enabled true
- csv.enabled false
- html.destination file("${buildDir}/jacocoHtml")
- }
- executionData = files('build/jacoco/jacocoTest.exec')
-}
-
-def binaryRelease(taskName, jarName, mainClass) {
- return tasks.create("${taskName}", Jar) {
- baseName = jarName
- version = null
- from(sourceSets.main.output) {
- include "/**"
- }
-
- from {
- configurations.compile.collect {
- it.isDirectory() ? it : zipTree(it)
- }
- }
-
- manifest {
- attributes "Main-Class": "${mainClass}"
- }
- }
-}
-
-artifacts {
- archives(binaryRelease('buildSolidityNodeJar', 'SolidityNode', 'org.tron.program.SolidityNode'),
- binaryRelease('buildFullNodeJar', 'FullNode', 'org.tron.program.FullNode'),
- binaryRelease('buildKeystoreFactoryJar', 'KeystoreFactory', 'org.tron.program.KeystoreFactory'),
- binaryRelease('buildDBConvertJar', 'DBConvert', 'org.tron.program.DBConvert'))
-}
+plugins {
+ id 'java'
+}
+
+group 'tronprotocol'
+version '1.0-SNAPSHOT'
+
+sourceCompatibility = 1.8
+
+repositories {
+ mavenCentral()
+}
+
+dependencies {
+ testCompile group: 'junit', name: 'junit', version: '4.12'
+}
diff --git a/chainbase/build.gradle b/chainbase/build.gradle
new file mode 100644
index 00000000000..445bd979d12
--- /dev/null
+++ b/chainbase/build.gradle
@@ -0,0 +1,16 @@
+plugins {
+ id 'java'
+}
+
+group 'tronprotocol'
+version '1.0-SNAPSHOT'
+
+sourceCompatibility = 1.8
+
+repositories {
+ mavenCentral()
+}
+
+dependencies {
+ testCompile group: 'junit', name: 'junit', version: '4.12'
+}
diff --git a/.circleci/config.yml b/framework/.circleci/config.yml
similarity index 100%
rename from .circleci/config.yml
rename to framework/.circleci/config.yml
diff --git a/.codeclimate.yml b/framework/.codeclimate.yml
similarity index 100%
rename from .codeclimate.yml
rename to framework/.codeclimate.yml
diff --git a/.travis.yml b/framework/.travis.yml
similarity index 100%
rename from .travis.yml
rename to framework/.travis.yml
diff --git a/CONTRIBUTING.md b/framework/CONTRIBUTING.md
similarity index 100%
rename from CONTRIBUTING.md
rename to framework/CONTRIBUTING.md
diff --git a/Dockerfile b/framework/Dockerfile
similarity index 100%
rename from Dockerfile
rename to framework/Dockerfile
diff --git a/DownloadLinks.sh b/framework/DownloadLinks.sh
similarity index 100%
rename from DownloadLinks.sh
rename to framework/DownloadLinks.sh
diff --git a/LICENSE b/framework/LICENSE
similarity index 100%
rename from LICENSE
rename to framework/LICENSE
diff --git a/README.md b/framework/README.md
similarity index 100%
rename from README.md
rename to framework/README.md
diff --git a/TRON_Protobuf_Protocol_document.md b/framework/TRON_Protobuf_Protocol_document.md
similarity index 100%
rename from TRON_Protobuf_Protocol_document.md
rename to framework/TRON_Protobuf_Protocol_document.md
diff --git a/framework/build.gradle b/framework/build.gradle
new file mode 100644
index 00000000000..23a29cef4ca
--- /dev/null
+++ b/framework/build.gradle
@@ -0,0 +1,363 @@
+buildscript {
+ repositories {
+ mavenCentral()
+ jcenter()
+ maven { url 'https://jitpack.io' }
+ }
+ dependencies {
+ classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
+ classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
+ }
+}
+plugins {
+ id "org.sonarqube" version "2.6"
+}
+
+group 'org.tron'
+version '1.0.0'
+
+apply plugin: 'java'
+apply plugin: 'com.google.protobuf'
+apply plugin: 'application'
+apply plugin: 'checkstyle'
+apply plugin: 'com.github.johnrengelman.shadow'
+apply plugin: "jacoco"
+apply plugin: 'maven-publish'
+
+jar.enabled = false
+shadowJar.enabled = true
+
+sourceCompatibility = 1.8
+[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
+mainClassName = 'org.tron.program.FullNode'
+
+publishing {
+ publications {
+ mavenJava(MavenPublication) {
+ from components.java
+ artifact sourceJar
+ }
+ }
+ repositories {
+ mavenLocal()
+ }
+}
+
+task sourceJar(type: Jar, dependsOn: classes) {
+ classifier 'sources'
+ from sourceSets.main.allSource
+}
+
+repositories {
+ mavenLocal()
+ mavenCentral()
+ maven { url 'http://repo.spring.io/plugins-release' }
+ // maven { url 'https://maven.aliyun.com/nexus/content/repositories/central/' }
+ maven { url 'https://jitpack.io' }
+}
+def versions = [
+ checkstyle: '8.7',
+]
+
+jacoco {
+ toolVersion = "0.8.1"
+}
+
+
+configurations {
+ checkstyleConfig
+
+}
+
+configurations.getByName('checkstyleConfig') {
+ transitive = false
+}
+
+static def isWindows() {
+ return org.gradle.internal.os.OperatingSystem.current().isWindows()
+}
+
+if (isWindows()) {
+ ext {
+ leveldbGroup = "org.ethereum"
+ leveldbName = "leveldbjni-all"
+ leveldbVersion = "1.18.3"
+ }
+} else {
+ ext {
+ leveldbGroup = "org.fusesource.leveldbjni"
+ leveldbName = "leveldbjni-all"
+ leveldbVersion = "1.8"
+ }
+}
+
+task version(type: Exec) {
+ commandLine 'bash', '-c', './ver.sh'
+}
+
+dependencies {
+ //local libraries
+ compile fileTree(dir: 'libs', include: '*.jar')
+ // end local libraries
+ testCompile group: 'junit', name: 'junit', version: '4.12'
+ testCompile group: 'org.mockito', name: 'mockito-core', version: '2.13.0'
+ testCompile group: 'org.hamcrest', name: 'hamcrest-junit', version: '1.0.0.1'
+
+ testCompile group: 'org.testng', name: 'testng', version: '6.14.3'
+
+ compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
+ compile group: 'org.slf4j', name: 'jcl-over-slf4j', version: '1.7.25'
+ compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
+
+// compile "org.projectlombok:lombok:1.16.18"
+ compile group: 'org.projectlombok', name: 'lombok', version: '1.18.2'
+
+ compile group: 'commons-codec', name: 'commons-codec', version: '1.11'
+
+ compile "com.madgag.spongycastle:core:1.58.0.0"
+ compile "com.madgag.spongycastle:prov:1.58.0.0"
+
+ compile group: 'com.google.guava', name: 'guava', version: '24.1-jre'
+
+ compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.4.0'
+ compile group: 'com.google.protobuf', name: 'protobuf-java-util', version: '3.4.0'
+
+ compile "org.iq80.leveldb:leveldb:0.7"
+
+ compile group: 'org.rocksdb', name: 'rocksdbjni', version: '5.15.10'
+
+ compile group: leveldbGroup, name: leveldbName, version: leveldbVersion
+
+ compile "org.apache.commons:commons-collections4:4.0"
+
+ compile group: 'com.typesafe', name: 'config', version: '1.3.2'
+
+ compile "com.google.code.findbugs:jsr305:3.0.0"
+
+ compile "com.cedarsoftware:java-util:1.8.0"
+
+ compile "org.apache.commons:commons-lang3:3.4"
+
+ compile group: 'org.springframework', name: 'spring-context', version: '4.2.0.RELEASE'
+ compile group: 'org.springframework', name: 'spring-tx', version: '4.2.0.RELEASE'
+
+ compile group: 'com.beust', name: 'jcommander', version: '1.72'
+
+ compile group: 'junit', name: 'junit', version: '4.12'
+
+ compile group: 'net.jcip', name: 'jcip-annotations', version: '1.0'
+
+ compile group: 'org.fusesource.jansi', name: 'jansi', version: '1.16'
+ compile group: 'com.alibaba', name: 'fastjson', version: '1.2.44'
+
+ compile group: 'com.google.inject', name: 'guice', version: '4.1.0'
+
+ compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.5'
+ compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.5'
+ compile group: 'org.apache.commons', name: 'commons-math', version: '2.2'
+
+ compile group: 'joda-time', name: 'joda-time', version: '2.3'
+
+ compile group: 'io.dropwizard.metrics', name: 'metrics-core', version: '3.1.2'
+
+// checkstyleConfig "com.puppycrawl.tools:checkstyle:${versions.checkstyle}"
+ // google grpc
+ compile group: 'io.grpc', name: 'grpc-netty', version: '1.14.0'
+ compile group: 'io.grpc', name: 'grpc-protobuf', version: '1.14.0'
+ compile group: 'io.grpc', name: 'grpc-stub', version: '1.14.0'
+ // end google grpc
+
+ compile group: 'com.carrotsearch', name: 'java-sizeof', version: '0.0.5'
+
+ compile 'org.aspectj:aspectjrt:1.8.13'
+ compile 'org.aspectj:aspectjweaver:1.8.13'
+ compile 'org.aspectj:aspectjtools:1.8.13'
+ compile 'com.googlecode.cqengine:cqengine:2.12.4'
+ compile group: 'com.google.api.grpc', name: 'googleapis-common-protos', version: '0.0.3'
+
+ // http
+ compile 'org.eclipse.jetty:jetty-server:9.4.11.v20180605'
+ compile 'org.eclipse.jetty:jetty-servlet:9.4.11.v20180605'
+ compile 'com.alibaba:fastjson:1.2.47'
+ compile group: 'org.apache.httpcomponents', name: 'httpasyncclient', version: '4.1.1'
+ // end http
+
+ compile "io.vavr:vavr:0.9.2"
+ compile group: 'org.pf4j', name: 'pf4j', version: '2.5.0'
+
+ compile group: 'org.zeromq', name: 'jeromq', version: '0.5.0'
+ compile 'com.github.tronprotocol:zksnark-java-sdk:master-SNAPSHOT'
+ compile 'com.github.tronprotocol:chainbase:dynamicStore-SNAPSHOT'
+}
+
+check.dependsOn 'lint'
+
+//checkstyle {
+// toolVersion = "${versions.checkstyle}"
+// config = resources.text.fromArchiveEntry(configurations.checkstyleConfig, 'google_checks.xml')
+//
+//}
+checkstyle {
+ toolVersion = "${versions.checkstyle}"
+ configFile = file("config/checkstyle/checkStyleAll.xml")
+}
+
+
+checkstyleMain {
+ source = 'src/main/java'
+}
+
+task lint(type: Checkstyle) {
+ // Cleaning the old log because of the creation of the new ones (not sure if totaly needed)
+ delete fileTree(dir: "${project.rootDir}/app/build/reports")
+ source 'src'
+ include '**/*.java'
+ exclude 'main/gen/**'
+ exclude 'test/**'
+ // empty classpath
+ classpath = files()
+ //Failing the build
+ ignoreFailures = false
+}
+
+tasks.matching { it instanceof Test }.all {
+ testLogging.events = ["failed", "passed", "skipped"]
+}
+
+if (project.hasProperty("mainClass")) {
+ mainClassName = mainClass
+}
+
+sourceSets {
+ main {
+ proto {
+ srcDir 'src/main/protos'
+ }
+ java {
+ srcDir 'src/main/gen'
+ srcDir 'src/main/java'
+ }
+ }
+
+}
+
+protobuf {
+ generatedFilesBaseDir = "$projectDir/src/"
+ protoc {
+ artifact = "com.google.protobuf:protoc:3.5.1-1"
+ }
+
+ plugins {
+ grpc {
+ artifact = 'io.grpc:protoc-gen-grpc-java:1.9.0'
+ }
+ }
+ generateProtoTasks {
+ all().each { task ->
+ task.builtins {
+ java { outputSubDir = "gen" }
+ }
+ }
+ all()*.plugins {
+ grpc {
+ outputSubDir = "gen"
+ }
+ }
+ }
+}
+
+run {
+ if (project.hasProperty('witness')) {
+ standardInput = System.in
+ args = ['--witness']
+ }
+}
+
+shadowJar {
+ baseName = 'java-tron'
+ classifier = null
+ version = null
+}
+
+test {
+ testLogging {
+ exceptionFormat = 'full'
+ }
+ jacoco {
+ append = true
+ destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
+ classDumpDir = file("$buildDir/jacoco/classpathdumps")
+ }
+ if (isWindows()) {
+ exclude '**/ShieldedTransferActuatorTest.class'
+ exclude '**/BackupDbUtilTest.class'
+ exclude '**/ManagerTest.class'
+ exclude 'org/tron/core/zksnark/**'
+ }
+}
+
+task stest(type: Test) {
+
+ useTestNG {
+ suites(file('src/test/resources/testng.xml'))
+ parallel 'tests'
+ threadCount 4
+
+ }
+
+ testLogging {
+ exceptionFormat = 'full'
+ showStackTraces = "true"
+ }
+
+ jacoco {
+ append = false
+ destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
+ classDumpDir = file("$buildDir/jacoco/classpathdumps")
+ }
+}
+
+task dailyBuild(type: Test) {
+ useTestNG {
+ suites(file('src/test/resources/daily-build.xml'))
+ parallel 'tests'
+ threadCount 1
+ }
+}
+
+
+jacocoTestReport {
+ reports {
+ xml.enabled true
+ csv.enabled false
+ html.destination file("${buildDir}/jacocoHtml")
+ }
+ executionData = files('build/jacoco/jacocoTest.exec')
+}
+
+def binaryRelease(taskName, jarName, mainClass) {
+ return tasks.create("${taskName}", Jar) {
+ baseName = jarName
+ version = null
+ from(sourceSets.main.output) {
+ include "/**"
+ }
+
+ from {
+ configurations.compile.collect {
+ it.isDirectory() ? it : zipTree(it)
+ }
+ }
+
+ manifest {
+ attributes "Main-Class": "${mainClass}"
+ }
+ }
+}
+
+artifacts {
+ archives(binaryRelease('buildSolidityNodeJar', 'SolidityNode', 'org.tron.program.SolidityNode'),
+ binaryRelease('buildFullNodeJar', 'FullNode', 'org.tron.program.FullNode'),
+ binaryRelease('buildKeystoreFactoryJar', 'KeystoreFactory', 'org.tron.program.KeystoreFactory'),
+ binaryRelease('buildDBConvertJar', 'DBConvert', 'org.tron.program.DBConvert'))
+}
diff --git a/build.md b/framework/build.md
similarity index 100%
rename from build.md
rename to framework/build.md
diff --git a/config/checkstyle/checkStyle.xml b/framework/config/checkstyle/checkStyle.xml
similarity index 100%
rename from config/checkstyle/checkStyle.xml
rename to framework/config/checkstyle/checkStyle.xml
diff --git a/config/checkstyle/checkStyleAll.xml b/framework/config/checkstyle/checkStyleAll.xml
similarity index 100%
rename from config/checkstyle/checkStyleAll.xml
rename to framework/config/checkstyle/checkStyleAll.xml
diff --git a/deploy.sh b/framework/deploy.sh
similarity index 100%
rename from deploy.sh
rename to framework/deploy.sh
diff --git a/docker/Dockerfile b/framework/docker/Dockerfile
similarity index 100%
rename from docker/Dockerfile
rename to framework/docker/Dockerfile
diff --git a/docker/README.md b/framework/docker/README.md
similarity index 100%
rename from docker/README.md
rename to framework/docker/README.md
diff --git a/docs/images/architecture_diagram.png b/framework/docs/images/architecture_diagram.png
similarity index 100%
rename from docs/images/architecture_diagram.png
rename to framework/docs/images/architecture_diagram.png
diff --git a/docs/images/program_configure.png b/framework/docs/images/program_configure.png
similarity index 100%
rename from docs/images/program_configure.png
rename to framework/docs/images/program_configure.png
diff --git a/docs/images/set_witness_param.jpeg b/framework/docs/images/set_witness_param.jpeg
similarity index 100%
rename from docs/images/set_witness_param.jpeg
rename to framework/docs/images/set_witness_param.jpeg
diff --git a/gen.sh b/framework/gen.sh
similarity index 100%
rename from gen.sh
rename to framework/gen.sh
diff --git a/framework/gradle/wrapper/gradle-wrapper.jar b/framework/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000000..27768f1bbac
Binary files /dev/null and b/framework/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/framework/gradle/wrapper/gradle-wrapper.properties b/framework/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000000..244f55d0b14
--- /dev/null
+++ b/framework/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Feb 14 20:55:40 CET 2018
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-all.zip
diff --git a/framework/gradlew b/framework/gradlew
new file mode 100755
index 00000000000..bda416feaa4
--- /dev/null
+++ b/framework/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+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=""
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+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
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((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" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+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" "$@" --no-daemon
diff --git a/framework/gradlew.bat b/framework/gradlew.bat
new file mode 100644
index 00000000000..e95643d6a2c
--- /dev/null
+++ b/framework/gradlew.bat
@@ -0,0 +1,84 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+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=
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/jitpack.yml b/framework/jitpack.yml
similarity index 100%
rename from jitpack.yml
rename to framework/jitpack.yml
diff --git a/local.properties b/framework/local.properties
similarity index 100%
rename from local.properties
rename to framework/local.properties
diff --git a/lombok.config b/framework/lombok.config
similarity index 100%
rename from lombok.config
rename to framework/lombok.config
diff --git a/prop.properties b/framework/prop.properties
similarity index 100%
rename from prop.properties
rename to framework/prop.properties
diff --git a/querySonar.sh b/framework/querySonar.sh
similarity index 100%
rename from querySonar.sh
rename to framework/querySonar.sh
diff --git a/quickstart.md b/framework/quickstart.md
similarity index 100%
rename from quickstart.md
rename to framework/quickstart.md
diff --git a/run.md b/framework/run.md
similarity index 100%
rename from run.md
rename to framework/run.md
diff --git a/framework/settings.gradle b/framework/settings.gradle
new file mode 100644
index 00000000000..977dac6036e
--- /dev/null
+++ b/framework/settings.gradle
@@ -0,0 +1,2 @@
+rootProject.name = 'java-tron'
+
diff --git a/sonar-project.properties b/framework/sonar-project.properties
similarity index 100%
rename from sonar-project.properties
rename to framework/sonar-project.properties
diff --git a/sprout-verifying.key b/framework/sprout-verifying.key
similarity index 100%
rename from sprout-verifying.key
rename to framework/sprout-verifying.key
diff --git a/src/lombok.config b/framework/src/lombok.config
similarity index 100%
rename from src/lombok.config
rename to framework/src/lombok.config
diff --git a/framework/src/main/gen/org/tron/api/GrpcAPI.java b/framework/src/main/gen/org/tron/api/GrpcAPI.java
new file mode 100644
index 00000000000..49a8ace46ab
--- /dev/null
+++ b/framework/src/main/gen/org/tron/api/GrpcAPI.java
@@ -0,0 +1,29214 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: api/api.proto
+
+package org.tron.api;
+
+public final class GrpcAPI {
+ private GrpcAPI() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface ReturnOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:protocol.Return)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * bool result = 1;
+ */
+ boolean getResult();
+
+ /**
+ * .protocol.Return.response_code code = 2;
+ */
+ int getCodeValue();
+ /**
+ * .protocol.Return.response_code code = 2;
+ */
+ org.tron.api.GrpcAPI.Return.response_code getCode();
+
+ /**
+ * bytes message = 3;
+ */
+ com.google.protobuf.ByteString getMessage();
+ }
+ /**
+ * Protobuf type {@code protocol.Return}
+ */
+ public static final class Return extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.Return)
+ ReturnOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Return.newBuilder() to construct.
+ private Return(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Return() {
+ result_ = false;
+ code_ = 0;
+ message_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Return(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ result_ = input.readBool();
+ break;
+ }
+ case 16: {
+ int rawValue = input.readEnum();
+
+ code_ = rawValue;
+ break;
+ }
+ case 26: {
+
+ message_ = input.readBytes();
+ 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 org.tron.api.GrpcAPI.internal_static_protocol_Return_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.tron.api.GrpcAPI.internal_static_protocol_Return_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.tron.api.GrpcAPI.Return.class, org.tron.api.GrpcAPI.Return.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code protocol.Return.response_code}
+ */
+ public enum response_code
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * SUCCESS = 0;
+ */
+ SUCCESS(0),
+ /**
+ *
+ * error in signature + *+ * + *
SIGERROR = 1;
+ */
+ SIGERROR(1),
+ /**
+ * CONTRACT_VALIDATE_ERROR = 2;
+ */
+ CONTRACT_VALIDATE_ERROR(2),
+ /**
+ * CONTRACT_EXE_ERROR = 3;
+ */
+ CONTRACT_EXE_ERROR(3),
+ /**
+ * BANDWITH_ERROR = 4;
+ */
+ BANDWITH_ERROR(4),
+ /**
+ * DUP_TRANSACTION_ERROR = 5;
+ */
+ DUP_TRANSACTION_ERROR(5),
+ /**
+ * TAPOS_ERROR = 6;
+ */
+ TAPOS_ERROR(6),
+ /**
+ * TOO_BIG_TRANSACTION_ERROR = 7;
+ */
+ TOO_BIG_TRANSACTION_ERROR(7),
+ /**
+ * TRANSACTION_EXPIRATION_ERROR = 8;
+ */
+ TRANSACTION_EXPIRATION_ERROR(8),
+ /**
+ * SERVER_BUSY = 9;
+ */
+ SERVER_BUSY(9),
+ /**
+ * NO_CONNECTION = 10;
+ */
+ NO_CONNECTION(10),
+ /**
+ * NOT_ENOUGH_EFFECTIVE_CONNECTION = 11;
+ */
+ NOT_ENOUGH_EFFECTIVE_CONNECTION(11),
+ /**
+ * OTHER_ERROR = 20;
+ */
+ OTHER_ERROR(20),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * SUCCESS = 0;
+ */
+ public static final int SUCCESS_VALUE = 0;
+ /**
+ * + * error in signature + *+ * + *
SIGERROR = 1;
+ */
+ public static final int SIGERROR_VALUE = 1;
+ /**
+ * CONTRACT_VALIDATE_ERROR = 2;
+ */
+ public static final int CONTRACT_VALIDATE_ERROR_VALUE = 2;
+ /**
+ * CONTRACT_EXE_ERROR = 3;
+ */
+ public static final int CONTRACT_EXE_ERROR_VALUE = 3;
+ /**
+ * BANDWITH_ERROR = 4;
+ */
+ public static final int BANDWITH_ERROR_VALUE = 4;
+ /**
+ * DUP_TRANSACTION_ERROR = 5;
+ */
+ public static final int DUP_TRANSACTION_ERROR_VALUE = 5;
+ /**
+ * TAPOS_ERROR = 6;
+ */
+ public static final int TAPOS_ERROR_VALUE = 6;
+ /**
+ * TOO_BIG_TRANSACTION_ERROR = 7;
+ */
+ public static final int TOO_BIG_TRANSACTION_ERROR_VALUE = 7;
+ /**
+ * TRANSACTION_EXPIRATION_ERROR = 8;
+ */
+ public static final int TRANSACTION_EXPIRATION_ERROR_VALUE = 8;
+ /**
+ * SERVER_BUSY = 9;
+ */
+ public static final int SERVER_BUSY_VALUE = 9;
+ /**
+ * NO_CONNECTION = 10;
+ */
+ public static final int NO_CONNECTION_VALUE = 10;
+ /**
+ * NOT_ENOUGH_EFFECTIVE_CONNECTION = 11;
+ */
+ public static final int NOT_ENOUGH_EFFECTIVE_CONNECTION_VALUE = 11;
+ /**
+ * OTHER_ERROR = 20;
+ */
+ public static final int OTHER_ERROR_VALUE = 20;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static response_code valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static response_code forNumber(int value) {
+ switch (value) {
+ case 0: return SUCCESS;
+ case 1: return SIGERROR;
+ case 2: return CONTRACT_VALIDATE_ERROR;
+ case 3: return CONTRACT_EXE_ERROR;
+ case 4: return BANDWITH_ERROR;
+ case 5: return DUP_TRANSACTION_ERROR;
+ case 6: return TAPOS_ERROR;
+ case 7: return TOO_BIG_TRANSACTION_ERROR;
+ case 8: return TRANSACTION_EXPIRATION_ERROR;
+ case 9: return SERVER_BUSY;
+ case 10: return NO_CONNECTION;
+ case 11: return NOT_ENOUGH_EFFECTIVE_CONNECTION;
+ case 20: return OTHER_ERROR;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMapbool result = 1;
+ */
+ public boolean getResult() {
+ return result_;
+ }
+
+ public static final int CODE_FIELD_NUMBER = 2;
+ private int code_;
+ /**
+ * .protocol.Return.response_code code = 2;
+ */
+ public int getCodeValue() {
+ return code_;
+ }
+ /**
+ * .protocol.Return.response_code code = 2;
+ */
+ public org.tron.api.GrpcAPI.Return.response_code getCode() {
+ org.tron.api.GrpcAPI.Return.response_code result = org.tron.api.GrpcAPI.Return.response_code.valueOf(code_);
+ return result == null ? org.tron.api.GrpcAPI.Return.response_code.UNRECOGNIZED : result;
+ }
+
+ public static final int MESSAGE_FIELD_NUMBER = 3;
+ private com.google.protobuf.ByteString message_;
+ /**
+ * bytes message = 3;
+ */
+ public com.google.protobuf.ByteString getMessage() {
+ return message_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (result_ != false) {
+ output.writeBool(1, result_);
+ }
+ if (code_ != org.tron.api.GrpcAPI.Return.response_code.SUCCESS.getNumber()) {
+ output.writeEnum(2, code_);
+ }
+ if (!message_.isEmpty()) {
+ output.writeBytes(3, message_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (result_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, result_);
+ }
+ if (code_ != org.tron.api.GrpcAPI.Return.response_code.SUCCESS.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(2, code_);
+ }
+ if (!message_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(3, message_);
+ }
+ 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 org.tron.api.GrpcAPI.Return)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.Return other = (org.tron.api.GrpcAPI.Return) obj;
+
+ boolean result = true;
+ result = result && (getResult()
+ == other.getResult());
+ result = result && code_ == other.code_;
+ result = result && getMessage()
+ .equals(other.getMessage());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getResult());
+ hash = (37 * hash) + CODE_FIELD_NUMBER;
+ hash = (53 * hash) + code_;
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.Return parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.Return parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.Return parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.Return parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.Return parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.Return parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.Return parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.Return 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 org.tron.api.GrpcAPI.Return parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.Return 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 org.tron.api.GrpcAPI.Return parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.Return parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.Return prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.Return}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbool result = 1;
+ */
+ public boolean getResult() {
+ return result_;
+ }
+ /**
+ * bool result = 1;
+ */
+ public Builder setResult(boolean value) {
+
+ result_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool result = 1;
+ */
+ public Builder clearResult() {
+
+ result_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int code_ = 0;
+ /**
+ * .protocol.Return.response_code code = 2;
+ */
+ public int getCodeValue() {
+ return code_;
+ }
+ /**
+ * .protocol.Return.response_code code = 2;
+ */
+ public Builder setCodeValue(int value) {
+ code_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * .protocol.Return.response_code code = 2;
+ */
+ public org.tron.api.GrpcAPI.Return.response_code getCode() {
+ org.tron.api.GrpcAPI.Return.response_code result = org.tron.api.GrpcAPI.Return.response_code.valueOf(code_);
+ return result == null ? org.tron.api.GrpcAPI.Return.response_code.UNRECOGNIZED : result;
+ }
+ /**
+ * .protocol.Return.response_code code = 2;
+ */
+ public Builder setCode(org.tron.api.GrpcAPI.Return.response_code value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ code_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .protocol.Return.response_code code = 2;
+ */
+ public Builder clearCode() {
+
+ code_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * bytes message = 3;
+ */
+ public com.google.protobuf.ByteString getMessage() {
+ return message_;
+ }
+ /**
+ * bytes message = 3;
+ */
+ public Builder setMessage(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ message_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes message = 3;
+ */
+ public Builder clearMessage() {
+
+ message_ = getDefaultInstance().getMessage();
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.Return)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.Return)
+ private static final org.tron.api.GrpcAPI.Return DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.Return();
+ }
+
+ public static org.tron.api.GrpcAPI.Return getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint64 block_num = 1;
+ */
+ long getBlockNum();
+
+ /**
+ * bytes block_hash = 2;
+ */
+ com.google.protobuf.ByteString getBlockHash();
+ }
+ /**
+ * Protobuf type {@code protocol.BlockReference}
+ */
+ public static final class BlockReference extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.BlockReference)
+ BlockReferenceOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BlockReference.newBuilder() to construct.
+ private BlockReference(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BlockReference() {
+ blockNum_ = 0L;
+ blockHash_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BlockReference(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ blockNum_ = input.readInt64();
+ break;
+ }
+ case 18: {
+
+ blockHash_ = input.readBytes();
+ 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 org.tron.api.GrpcAPI.internal_static_protocol_BlockReference_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.tron.api.GrpcAPI.internal_static_protocol_BlockReference_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.tron.api.GrpcAPI.BlockReference.class, org.tron.api.GrpcAPI.BlockReference.Builder.class);
+ }
+
+ public static final int BLOCK_NUM_FIELD_NUMBER = 1;
+ private long blockNum_;
+ /**
+ * int64 block_num = 1;
+ */
+ public long getBlockNum() {
+ return blockNum_;
+ }
+
+ public static final int BLOCK_HASH_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString blockHash_;
+ /**
+ * bytes block_hash = 2;
+ */
+ public com.google.protobuf.ByteString getBlockHash() {
+ return blockHash_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (blockNum_ != 0L) {
+ output.writeInt64(1, blockNum_);
+ }
+ if (!blockHash_.isEmpty()) {
+ output.writeBytes(2, blockHash_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (blockNum_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, blockNum_);
+ }
+ if (!blockHash_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, blockHash_);
+ }
+ 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 org.tron.api.GrpcAPI.BlockReference)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.BlockReference other = (org.tron.api.GrpcAPI.BlockReference) obj;
+
+ boolean result = true;
+ result = result && (getBlockNum()
+ == other.getBlockNum());
+ result = result && getBlockHash()
+ .equals(other.getBlockHash());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + BLOCK_NUM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getBlockNum());
+ hash = (37 * hash) + BLOCK_HASH_FIELD_NUMBER;
+ hash = (53 * hash) + getBlockHash().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.BlockReference parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.BlockReference parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.BlockReference parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.BlockReference parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.BlockReference parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.BlockReference parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.BlockReference parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.BlockReference 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 org.tron.api.GrpcAPI.BlockReference parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.BlockReference 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 org.tron.api.GrpcAPI.BlockReference parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.BlockReference parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.BlockReference prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.BlockReference}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderint64 block_num = 1;
+ */
+ public long getBlockNum() {
+ return blockNum_;
+ }
+ /**
+ * int64 block_num = 1;
+ */
+ public Builder setBlockNum(long value) {
+
+ blockNum_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 block_num = 1;
+ */
+ public Builder clearBlockNum() {
+
+ blockNum_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString blockHash_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * bytes block_hash = 2;
+ */
+ public com.google.protobuf.ByteString getBlockHash() {
+ return blockHash_;
+ }
+ /**
+ * bytes block_hash = 2;
+ */
+ public Builder setBlockHash(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ blockHash_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes block_hash = 2;
+ */
+ public Builder clearBlockHash() {
+
+ blockHash_ = getDefaultInstance().getBlockHash();
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.BlockReference)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.BlockReference)
+ private static final org.tron.api.GrpcAPI.BlockReference DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.BlockReference();
+ }
+
+ public static org.tron.api.GrpcAPI.BlockReference getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated .protocol.Witness witnesses = 1;
+ */
+ java.util.Listrepeated .protocol.Witness witnesses = 1;
+ */
+ org.tron.protos.Protocol.Witness getWitnesses(int index);
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ int getWitnessesCount();
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ java.util.List extends org.tron.protos.Protocol.WitnessOrBuilder>
+ getWitnessesOrBuilderList();
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ org.tron.protos.Protocol.WitnessOrBuilder getWitnessesOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code protocol.WitnessList}
+ */
+ public static final class WitnessList extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.WitnessList)
+ WitnessListOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use WitnessList.newBuilder() to construct.
+ private WitnessList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private WitnessList() {
+ witnesses_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private WitnessList(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ witnesses_ = new java.util.ArrayListrepeated .protocol.Witness witnesses = 1;
+ */
+ public java.util.Listrepeated .protocol.Witness witnesses = 1;
+ */
+ public java.util.List extends org.tron.protos.Protocol.WitnessOrBuilder>
+ getWitnessesOrBuilderList() {
+ return witnesses_;
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public int getWitnessesCount() {
+ return witnesses_.size();
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public org.tron.protos.Protocol.Witness getWitnesses(int index) {
+ return witnesses_.get(index);
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public org.tron.protos.Protocol.WitnessOrBuilder getWitnessesOrBuilder(
+ int index) {
+ return witnesses_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < witnesses_.size(); i++) {
+ output.writeMessage(1, witnesses_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < witnesses_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, witnesses_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.tron.api.GrpcAPI.WitnessList)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.WitnessList other = (org.tron.api.GrpcAPI.WitnessList) obj;
+
+ boolean result = true;
+ result = result && getWitnessesList()
+ .equals(other.getWitnessesList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getWitnessesCount() > 0) {
+ hash = (37 * hash) + WITNESSES_FIELD_NUMBER;
+ hash = (53 * hash) + getWitnessesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.WitnessList parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.WitnessList parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.WitnessList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.WitnessList parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.WitnessList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.WitnessList parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.WitnessList parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.WitnessList 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 org.tron.api.GrpcAPI.WitnessList parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.WitnessList 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 org.tron.api.GrpcAPI.WitnessList parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.WitnessList parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.WitnessList prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.WitnessList}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderrepeated .protocol.Witness witnesses = 1;
+ */
+ public java.util.Listrepeated .protocol.Witness witnesses = 1;
+ */
+ public int getWitnessesCount() {
+ if (witnessesBuilder_ == null) {
+ return witnesses_.size();
+ } else {
+ return witnessesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public org.tron.protos.Protocol.Witness getWitnesses(int index) {
+ if (witnessesBuilder_ == null) {
+ return witnesses_.get(index);
+ } else {
+ return witnessesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public Builder setWitnesses(
+ int index, org.tron.protos.Protocol.Witness value) {
+ if (witnessesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWitnessesIsMutable();
+ witnesses_.set(index, value);
+ onChanged();
+ } else {
+ witnessesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public Builder setWitnesses(
+ int index, org.tron.protos.Protocol.Witness.Builder builderForValue) {
+ if (witnessesBuilder_ == null) {
+ ensureWitnessesIsMutable();
+ witnesses_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ witnessesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public Builder addWitnesses(org.tron.protos.Protocol.Witness value) {
+ if (witnessesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWitnessesIsMutable();
+ witnesses_.add(value);
+ onChanged();
+ } else {
+ witnessesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public Builder addWitnesses(
+ int index, org.tron.protos.Protocol.Witness value) {
+ if (witnessesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWitnessesIsMutable();
+ witnesses_.add(index, value);
+ onChanged();
+ } else {
+ witnessesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public Builder addWitnesses(
+ org.tron.protos.Protocol.Witness.Builder builderForValue) {
+ if (witnessesBuilder_ == null) {
+ ensureWitnessesIsMutable();
+ witnesses_.add(builderForValue.build());
+ onChanged();
+ } else {
+ witnessesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public Builder addWitnesses(
+ int index, org.tron.protos.Protocol.Witness.Builder builderForValue) {
+ if (witnessesBuilder_ == null) {
+ ensureWitnessesIsMutable();
+ witnesses_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ witnessesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public Builder addAllWitnesses(
+ java.lang.Iterable extends org.tron.protos.Protocol.Witness> values) {
+ if (witnessesBuilder_ == null) {
+ ensureWitnessesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, witnesses_);
+ onChanged();
+ } else {
+ witnessesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public Builder clearWitnesses() {
+ if (witnessesBuilder_ == null) {
+ witnesses_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ witnessesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public Builder removeWitnesses(int index) {
+ if (witnessesBuilder_ == null) {
+ ensureWitnessesIsMutable();
+ witnesses_.remove(index);
+ onChanged();
+ } else {
+ witnessesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public org.tron.protos.Protocol.Witness.Builder getWitnessesBuilder(
+ int index) {
+ return getWitnessesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public org.tron.protos.Protocol.WitnessOrBuilder getWitnessesOrBuilder(
+ int index) {
+ if (witnessesBuilder_ == null) {
+ return witnesses_.get(index); } else {
+ return witnessesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public java.util.List extends org.tron.protos.Protocol.WitnessOrBuilder>
+ getWitnessesOrBuilderList() {
+ if (witnessesBuilder_ != null) {
+ return witnessesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(witnesses_);
+ }
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public org.tron.protos.Protocol.Witness.Builder addWitnessesBuilder() {
+ return getWitnessesFieldBuilder().addBuilder(
+ org.tron.protos.Protocol.Witness.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public org.tron.protos.Protocol.Witness.Builder addWitnessesBuilder(
+ int index) {
+ return getWitnessesFieldBuilder().addBuilder(
+ index, org.tron.protos.Protocol.Witness.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.Witness witnesses = 1;
+ */
+ public java.util.Listrepeated .protocol.Proposal proposals = 1;
+ */
+ java.util.Listrepeated .protocol.Proposal proposals = 1;
+ */
+ org.tron.protos.Protocol.Proposal getProposals(int index);
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ int getProposalsCount();
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ java.util.List extends org.tron.protos.Protocol.ProposalOrBuilder>
+ getProposalsOrBuilderList();
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ org.tron.protos.Protocol.ProposalOrBuilder getProposalsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code protocol.ProposalList}
+ */
+ public static final class ProposalList extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.ProposalList)
+ ProposalListOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ProposalList.newBuilder() to construct.
+ private ProposalList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ProposalList() {
+ proposals_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ProposalList(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ proposals_ = new java.util.ArrayListrepeated .protocol.Proposal proposals = 1;
+ */
+ public java.util.Listrepeated .protocol.Proposal proposals = 1;
+ */
+ public java.util.List extends org.tron.protos.Protocol.ProposalOrBuilder>
+ getProposalsOrBuilderList() {
+ return proposals_;
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public int getProposalsCount() {
+ return proposals_.size();
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public org.tron.protos.Protocol.Proposal getProposals(int index) {
+ return proposals_.get(index);
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public org.tron.protos.Protocol.ProposalOrBuilder getProposalsOrBuilder(
+ int index) {
+ return proposals_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < proposals_.size(); i++) {
+ output.writeMessage(1, proposals_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < proposals_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, proposals_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.tron.api.GrpcAPI.ProposalList)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.ProposalList other = (org.tron.api.GrpcAPI.ProposalList) obj;
+
+ boolean result = true;
+ result = result && getProposalsList()
+ .equals(other.getProposalsList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getProposalsCount() > 0) {
+ hash = (37 * hash) + PROPOSALS_FIELD_NUMBER;
+ hash = (53 * hash) + getProposalsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.ProposalList parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.ProposalList parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.ProposalList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.ProposalList parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.ProposalList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.ProposalList parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.ProposalList parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.ProposalList 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 org.tron.api.GrpcAPI.ProposalList parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.ProposalList 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 org.tron.api.GrpcAPI.ProposalList parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.ProposalList parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.ProposalList prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.ProposalList}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderrepeated .protocol.Proposal proposals = 1;
+ */
+ public java.util.Listrepeated .protocol.Proposal proposals = 1;
+ */
+ public int getProposalsCount() {
+ if (proposalsBuilder_ == null) {
+ return proposals_.size();
+ } else {
+ return proposalsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public org.tron.protos.Protocol.Proposal getProposals(int index) {
+ if (proposalsBuilder_ == null) {
+ return proposals_.get(index);
+ } else {
+ return proposalsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public Builder setProposals(
+ int index, org.tron.protos.Protocol.Proposal value) {
+ if (proposalsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProposalsIsMutable();
+ proposals_.set(index, value);
+ onChanged();
+ } else {
+ proposalsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public Builder setProposals(
+ int index, org.tron.protos.Protocol.Proposal.Builder builderForValue) {
+ if (proposalsBuilder_ == null) {
+ ensureProposalsIsMutable();
+ proposals_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ proposalsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public Builder addProposals(org.tron.protos.Protocol.Proposal value) {
+ if (proposalsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProposalsIsMutable();
+ proposals_.add(value);
+ onChanged();
+ } else {
+ proposalsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public Builder addProposals(
+ int index, org.tron.protos.Protocol.Proposal value) {
+ if (proposalsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProposalsIsMutable();
+ proposals_.add(index, value);
+ onChanged();
+ } else {
+ proposalsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public Builder addProposals(
+ org.tron.protos.Protocol.Proposal.Builder builderForValue) {
+ if (proposalsBuilder_ == null) {
+ ensureProposalsIsMutable();
+ proposals_.add(builderForValue.build());
+ onChanged();
+ } else {
+ proposalsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public Builder addProposals(
+ int index, org.tron.protos.Protocol.Proposal.Builder builderForValue) {
+ if (proposalsBuilder_ == null) {
+ ensureProposalsIsMutable();
+ proposals_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ proposalsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public Builder addAllProposals(
+ java.lang.Iterable extends org.tron.protos.Protocol.Proposal> values) {
+ if (proposalsBuilder_ == null) {
+ ensureProposalsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, proposals_);
+ onChanged();
+ } else {
+ proposalsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public Builder clearProposals() {
+ if (proposalsBuilder_ == null) {
+ proposals_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ proposalsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public Builder removeProposals(int index) {
+ if (proposalsBuilder_ == null) {
+ ensureProposalsIsMutable();
+ proposals_.remove(index);
+ onChanged();
+ } else {
+ proposalsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public org.tron.protos.Protocol.Proposal.Builder getProposalsBuilder(
+ int index) {
+ return getProposalsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public org.tron.protos.Protocol.ProposalOrBuilder getProposalsOrBuilder(
+ int index) {
+ if (proposalsBuilder_ == null) {
+ return proposals_.get(index); } else {
+ return proposalsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public java.util.List extends org.tron.protos.Protocol.ProposalOrBuilder>
+ getProposalsOrBuilderList() {
+ if (proposalsBuilder_ != null) {
+ return proposalsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(proposals_);
+ }
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public org.tron.protos.Protocol.Proposal.Builder addProposalsBuilder() {
+ return getProposalsFieldBuilder().addBuilder(
+ org.tron.protos.Protocol.Proposal.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public org.tron.protos.Protocol.Proposal.Builder addProposalsBuilder(
+ int index) {
+ return getProposalsFieldBuilder().addBuilder(
+ index, org.tron.protos.Protocol.Proposal.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.Proposal proposals = 1;
+ */
+ public java.util.Listrepeated .protocol.Exchange exchanges = 1;
+ */
+ java.util.Listrepeated .protocol.Exchange exchanges = 1;
+ */
+ org.tron.protos.Protocol.Exchange getExchanges(int index);
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ int getExchangesCount();
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ java.util.List extends org.tron.protos.Protocol.ExchangeOrBuilder>
+ getExchangesOrBuilderList();
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ org.tron.protos.Protocol.ExchangeOrBuilder getExchangesOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code protocol.ExchangeList}
+ */
+ public static final class ExchangeList extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.ExchangeList)
+ ExchangeListOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ExchangeList.newBuilder() to construct.
+ private ExchangeList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ExchangeList() {
+ exchanges_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ExchangeList(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ exchanges_ = new java.util.ArrayListrepeated .protocol.Exchange exchanges = 1;
+ */
+ public java.util.Listrepeated .protocol.Exchange exchanges = 1;
+ */
+ public java.util.List extends org.tron.protos.Protocol.ExchangeOrBuilder>
+ getExchangesOrBuilderList() {
+ return exchanges_;
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public int getExchangesCount() {
+ return exchanges_.size();
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public org.tron.protos.Protocol.Exchange getExchanges(int index) {
+ return exchanges_.get(index);
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public org.tron.protos.Protocol.ExchangeOrBuilder getExchangesOrBuilder(
+ int index) {
+ return exchanges_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < exchanges_.size(); i++) {
+ output.writeMessage(1, exchanges_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < exchanges_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, exchanges_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.tron.api.GrpcAPI.ExchangeList)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.ExchangeList other = (org.tron.api.GrpcAPI.ExchangeList) obj;
+
+ boolean result = true;
+ result = result && getExchangesList()
+ .equals(other.getExchangesList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getExchangesCount() > 0) {
+ hash = (37 * hash) + EXCHANGES_FIELD_NUMBER;
+ hash = (53 * hash) + getExchangesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.ExchangeList parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.ExchangeList parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.ExchangeList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.ExchangeList parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.ExchangeList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.ExchangeList parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.ExchangeList parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.ExchangeList 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 org.tron.api.GrpcAPI.ExchangeList parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.ExchangeList 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 org.tron.api.GrpcAPI.ExchangeList parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.ExchangeList parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.ExchangeList prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.ExchangeList}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderrepeated .protocol.Exchange exchanges = 1;
+ */
+ public java.util.Listrepeated .protocol.Exchange exchanges = 1;
+ */
+ public int getExchangesCount() {
+ if (exchangesBuilder_ == null) {
+ return exchanges_.size();
+ } else {
+ return exchangesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public org.tron.protos.Protocol.Exchange getExchanges(int index) {
+ if (exchangesBuilder_ == null) {
+ return exchanges_.get(index);
+ } else {
+ return exchangesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public Builder setExchanges(
+ int index, org.tron.protos.Protocol.Exchange value) {
+ if (exchangesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExchangesIsMutable();
+ exchanges_.set(index, value);
+ onChanged();
+ } else {
+ exchangesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public Builder setExchanges(
+ int index, org.tron.protos.Protocol.Exchange.Builder builderForValue) {
+ if (exchangesBuilder_ == null) {
+ ensureExchangesIsMutable();
+ exchanges_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ exchangesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public Builder addExchanges(org.tron.protos.Protocol.Exchange value) {
+ if (exchangesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExchangesIsMutable();
+ exchanges_.add(value);
+ onChanged();
+ } else {
+ exchangesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public Builder addExchanges(
+ int index, org.tron.protos.Protocol.Exchange value) {
+ if (exchangesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExchangesIsMutable();
+ exchanges_.add(index, value);
+ onChanged();
+ } else {
+ exchangesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public Builder addExchanges(
+ org.tron.protos.Protocol.Exchange.Builder builderForValue) {
+ if (exchangesBuilder_ == null) {
+ ensureExchangesIsMutable();
+ exchanges_.add(builderForValue.build());
+ onChanged();
+ } else {
+ exchangesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public Builder addExchanges(
+ int index, org.tron.protos.Protocol.Exchange.Builder builderForValue) {
+ if (exchangesBuilder_ == null) {
+ ensureExchangesIsMutable();
+ exchanges_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ exchangesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public Builder addAllExchanges(
+ java.lang.Iterable extends org.tron.protos.Protocol.Exchange> values) {
+ if (exchangesBuilder_ == null) {
+ ensureExchangesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, exchanges_);
+ onChanged();
+ } else {
+ exchangesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public Builder clearExchanges() {
+ if (exchangesBuilder_ == null) {
+ exchanges_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ exchangesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public Builder removeExchanges(int index) {
+ if (exchangesBuilder_ == null) {
+ ensureExchangesIsMutable();
+ exchanges_.remove(index);
+ onChanged();
+ } else {
+ exchangesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public org.tron.protos.Protocol.Exchange.Builder getExchangesBuilder(
+ int index) {
+ return getExchangesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public org.tron.protos.Protocol.ExchangeOrBuilder getExchangesOrBuilder(
+ int index) {
+ if (exchangesBuilder_ == null) {
+ return exchanges_.get(index); } else {
+ return exchangesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public java.util.List extends org.tron.protos.Protocol.ExchangeOrBuilder>
+ getExchangesOrBuilderList() {
+ if (exchangesBuilder_ != null) {
+ return exchangesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(exchanges_);
+ }
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public org.tron.protos.Protocol.Exchange.Builder addExchangesBuilder() {
+ return getExchangesFieldBuilder().addBuilder(
+ org.tron.protos.Protocol.Exchange.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public org.tron.protos.Protocol.Exchange.Builder addExchangesBuilder(
+ int index) {
+ return getExchangesFieldBuilder().addBuilder(
+ index, org.tron.protos.Protocol.Exchange.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.Exchange exchanges = 1;
+ */
+ public java.util.Listrepeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ java.util.Listrepeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ org.tron.protos.Contract.AssetIssueContract getAssetIssue(int index);
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ int getAssetIssueCount();
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ java.util.List extends org.tron.protos.Contract.AssetIssueContractOrBuilder>
+ getAssetIssueOrBuilderList();
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ org.tron.protos.Contract.AssetIssueContractOrBuilder getAssetIssueOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code protocol.AssetIssueList}
+ */
+ public static final class AssetIssueList extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.AssetIssueList)
+ AssetIssueListOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AssetIssueList.newBuilder() to construct.
+ private AssetIssueList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AssetIssueList() {
+ assetIssue_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private AssetIssueList(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ assetIssue_ = new java.util.ArrayListrepeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public java.util.Listrepeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public java.util.List extends org.tron.protos.Contract.AssetIssueContractOrBuilder>
+ getAssetIssueOrBuilderList() {
+ return assetIssue_;
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public int getAssetIssueCount() {
+ return assetIssue_.size();
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public org.tron.protos.Contract.AssetIssueContract getAssetIssue(int index) {
+ return assetIssue_.get(index);
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public org.tron.protos.Contract.AssetIssueContractOrBuilder getAssetIssueOrBuilder(
+ int index) {
+ return assetIssue_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < assetIssue_.size(); i++) {
+ output.writeMessage(1, assetIssue_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < assetIssue_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, assetIssue_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.tron.api.GrpcAPI.AssetIssueList)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.AssetIssueList other = (org.tron.api.GrpcAPI.AssetIssueList) obj;
+
+ boolean result = true;
+ result = result && getAssetIssueList()
+ .equals(other.getAssetIssueList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getAssetIssueCount() > 0) {
+ hash = (37 * hash) + ASSETISSUE_FIELD_NUMBER;
+ hash = (53 * hash) + getAssetIssueList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.AssetIssueList parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.AssetIssueList parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.AssetIssueList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.AssetIssueList parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.AssetIssueList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.AssetIssueList parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.AssetIssueList parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.AssetIssueList 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 org.tron.api.GrpcAPI.AssetIssueList parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.AssetIssueList 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 org.tron.api.GrpcAPI.AssetIssueList parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.AssetIssueList parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.AssetIssueList prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.AssetIssueList}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderrepeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public java.util.Listrepeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public int getAssetIssueCount() {
+ if (assetIssueBuilder_ == null) {
+ return assetIssue_.size();
+ } else {
+ return assetIssueBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public org.tron.protos.Contract.AssetIssueContract getAssetIssue(int index) {
+ if (assetIssueBuilder_ == null) {
+ return assetIssue_.get(index);
+ } else {
+ return assetIssueBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public Builder setAssetIssue(
+ int index, org.tron.protos.Contract.AssetIssueContract value) {
+ if (assetIssueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAssetIssueIsMutable();
+ assetIssue_.set(index, value);
+ onChanged();
+ } else {
+ assetIssueBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public Builder setAssetIssue(
+ int index, org.tron.protos.Contract.AssetIssueContract.Builder builderForValue) {
+ if (assetIssueBuilder_ == null) {
+ ensureAssetIssueIsMutable();
+ assetIssue_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ assetIssueBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public Builder addAssetIssue(org.tron.protos.Contract.AssetIssueContract value) {
+ if (assetIssueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAssetIssueIsMutable();
+ assetIssue_.add(value);
+ onChanged();
+ } else {
+ assetIssueBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public Builder addAssetIssue(
+ int index, org.tron.protos.Contract.AssetIssueContract value) {
+ if (assetIssueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAssetIssueIsMutable();
+ assetIssue_.add(index, value);
+ onChanged();
+ } else {
+ assetIssueBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public Builder addAssetIssue(
+ org.tron.protos.Contract.AssetIssueContract.Builder builderForValue) {
+ if (assetIssueBuilder_ == null) {
+ ensureAssetIssueIsMutable();
+ assetIssue_.add(builderForValue.build());
+ onChanged();
+ } else {
+ assetIssueBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public Builder addAssetIssue(
+ int index, org.tron.protos.Contract.AssetIssueContract.Builder builderForValue) {
+ if (assetIssueBuilder_ == null) {
+ ensureAssetIssueIsMutable();
+ assetIssue_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ assetIssueBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public Builder addAllAssetIssue(
+ java.lang.Iterable extends org.tron.protos.Contract.AssetIssueContract> values) {
+ if (assetIssueBuilder_ == null) {
+ ensureAssetIssueIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, assetIssue_);
+ onChanged();
+ } else {
+ assetIssueBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public Builder clearAssetIssue() {
+ if (assetIssueBuilder_ == null) {
+ assetIssue_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ assetIssueBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public Builder removeAssetIssue(int index) {
+ if (assetIssueBuilder_ == null) {
+ ensureAssetIssueIsMutable();
+ assetIssue_.remove(index);
+ onChanged();
+ } else {
+ assetIssueBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public org.tron.protos.Contract.AssetIssueContract.Builder getAssetIssueBuilder(
+ int index) {
+ return getAssetIssueFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public org.tron.protos.Contract.AssetIssueContractOrBuilder getAssetIssueOrBuilder(
+ int index) {
+ if (assetIssueBuilder_ == null) {
+ return assetIssue_.get(index); } else {
+ return assetIssueBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public java.util.List extends org.tron.protos.Contract.AssetIssueContractOrBuilder>
+ getAssetIssueOrBuilderList() {
+ if (assetIssueBuilder_ != null) {
+ return assetIssueBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(assetIssue_);
+ }
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public org.tron.protos.Contract.AssetIssueContract.Builder addAssetIssueBuilder() {
+ return getAssetIssueFieldBuilder().addBuilder(
+ org.tron.protos.Contract.AssetIssueContract.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public org.tron.protos.Contract.AssetIssueContract.Builder addAssetIssueBuilder(
+ int index) {
+ return getAssetIssueFieldBuilder().addBuilder(
+ index, org.tron.protos.Contract.AssetIssueContract.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.AssetIssueContract assetIssue = 1;
+ */
+ public java.util.Listrepeated .protocol.Block block = 1;
+ */
+ java.util.Listrepeated .protocol.Block block = 1;
+ */
+ org.tron.protos.Protocol.Block getBlock(int index);
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ int getBlockCount();
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ java.util.List extends org.tron.protos.Protocol.BlockOrBuilder>
+ getBlockOrBuilderList();
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ org.tron.protos.Protocol.BlockOrBuilder getBlockOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code protocol.BlockList}
+ */
+ public static final class BlockList extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.BlockList)
+ BlockListOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BlockList.newBuilder() to construct.
+ private BlockList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BlockList() {
+ block_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BlockList(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ block_ = new java.util.ArrayListrepeated .protocol.Block block = 1;
+ */
+ public java.util.Listrepeated .protocol.Block block = 1;
+ */
+ public java.util.List extends org.tron.protos.Protocol.BlockOrBuilder>
+ getBlockOrBuilderList() {
+ return block_;
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public int getBlockCount() {
+ return block_.size();
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public org.tron.protos.Protocol.Block getBlock(int index) {
+ return block_.get(index);
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public org.tron.protos.Protocol.BlockOrBuilder getBlockOrBuilder(
+ int index) {
+ return block_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < block_.size(); i++) {
+ output.writeMessage(1, block_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < block_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, block_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.tron.api.GrpcAPI.BlockList)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.BlockList other = (org.tron.api.GrpcAPI.BlockList) obj;
+
+ boolean result = true;
+ result = result && getBlockList()
+ .equals(other.getBlockList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getBlockCount() > 0) {
+ hash = (37 * hash) + BLOCK_FIELD_NUMBER;
+ hash = (53 * hash) + getBlockList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.BlockList parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.BlockList parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.BlockList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.BlockList parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.BlockList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.BlockList parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.BlockList parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.BlockList 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 org.tron.api.GrpcAPI.BlockList parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.BlockList 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 org.tron.api.GrpcAPI.BlockList parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.BlockList parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.BlockList prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.BlockList}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderrepeated .protocol.Block block = 1;
+ */
+ public java.util.Listrepeated .protocol.Block block = 1;
+ */
+ public int getBlockCount() {
+ if (blockBuilder_ == null) {
+ return block_.size();
+ } else {
+ return blockBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public org.tron.protos.Protocol.Block getBlock(int index) {
+ if (blockBuilder_ == null) {
+ return block_.get(index);
+ } else {
+ return blockBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public Builder setBlock(
+ int index, org.tron.protos.Protocol.Block value) {
+ if (blockBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBlockIsMutable();
+ block_.set(index, value);
+ onChanged();
+ } else {
+ blockBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public Builder setBlock(
+ int index, org.tron.protos.Protocol.Block.Builder builderForValue) {
+ if (blockBuilder_ == null) {
+ ensureBlockIsMutable();
+ block_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ blockBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public Builder addBlock(org.tron.protos.Protocol.Block value) {
+ if (blockBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBlockIsMutable();
+ block_.add(value);
+ onChanged();
+ } else {
+ blockBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public Builder addBlock(
+ int index, org.tron.protos.Protocol.Block value) {
+ if (blockBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBlockIsMutable();
+ block_.add(index, value);
+ onChanged();
+ } else {
+ blockBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public Builder addBlock(
+ org.tron.protos.Protocol.Block.Builder builderForValue) {
+ if (blockBuilder_ == null) {
+ ensureBlockIsMutable();
+ block_.add(builderForValue.build());
+ onChanged();
+ } else {
+ blockBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public Builder addBlock(
+ int index, org.tron.protos.Protocol.Block.Builder builderForValue) {
+ if (blockBuilder_ == null) {
+ ensureBlockIsMutable();
+ block_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ blockBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public Builder addAllBlock(
+ java.lang.Iterable extends org.tron.protos.Protocol.Block> values) {
+ if (blockBuilder_ == null) {
+ ensureBlockIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, block_);
+ onChanged();
+ } else {
+ blockBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public Builder clearBlock() {
+ if (blockBuilder_ == null) {
+ block_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ blockBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public Builder removeBlock(int index) {
+ if (blockBuilder_ == null) {
+ ensureBlockIsMutable();
+ block_.remove(index);
+ onChanged();
+ } else {
+ blockBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public org.tron.protos.Protocol.Block.Builder getBlockBuilder(
+ int index) {
+ return getBlockFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public org.tron.protos.Protocol.BlockOrBuilder getBlockOrBuilder(
+ int index) {
+ if (blockBuilder_ == null) {
+ return block_.get(index); } else {
+ return blockBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public java.util.List extends org.tron.protos.Protocol.BlockOrBuilder>
+ getBlockOrBuilderList() {
+ if (blockBuilder_ != null) {
+ return blockBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(block_);
+ }
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public org.tron.protos.Protocol.Block.Builder addBlockBuilder() {
+ return getBlockFieldBuilder().addBuilder(
+ org.tron.protos.Protocol.Block.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public org.tron.protos.Protocol.Block.Builder addBlockBuilder(
+ int index) {
+ return getBlockFieldBuilder().addBuilder(
+ index, org.tron.protos.Protocol.Block.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.Block block = 1;
+ */
+ public java.util.Listrepeated .protocol.Transaction transaction = 1;
+ */
+ java.util.Listrepeated .protocol.Transaction transaction = 1;
+ */
+ org.tron.protos.Protocol.Transaction getTransaction(int index);
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ int getTransactionCount();
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ java.util.List extends org.tron.protos.Protocol.TransactionOrBuilder>
+ getTransactionOrBuilderList();
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ org.tron.protos.Protocol.TransactionOrBuilder getTransactionOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code protocol.TransactionList}
+ */
+ public static final class TransactionList extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.TransactionList)
+ TransactionListOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TransactionList.newBuilder() to construct.
+ private TransactionList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TransactionList() {
+ transaction_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TransactionList(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ transaction_ = new java.util.ArrayListrepeated .protocol.Transaction transaction = 1;
+ */
+ public java.util.Listrepeated .protocol.Transaction transaction = 1;
+ */
+ public java.util.List extends org.tron.protos.Protocol.TransactionOrBuilder>
+ getTransactionOrBuilderList() {
+ return transaction_;
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public int getTransactionCount() {
+ return transaction_.size();
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public org.tron.protos.Protocol.Transaction getTransaction(int index) {
+ return transaction_.get(index);
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public org.tron.protos.Protocol.TransactionOrBuilder getTransactionOrBuilder(
+ int index) {
+ return transaction_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < transaction_.size(); i++) {
+ output.writeMessage(1, transaction_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < transaction_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, transaction_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.tron.api.GrpcAPI.TransactionList)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.TransactionList other = (org.tron.api.GrpcAPI.TransactionList) obj;
+
+ boolean result = true;
+ result = result && getTransactionList()
+ .equals(other.getTransactionList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getTransactionCount() > 0) {
+ hash = (37 * hash) + TRANSACTION_FIELD_NUMBER;
+ hash = (53 * hash) + getTransactionList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.TransactionList parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.TransactionList parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.TransactionList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.TransactionList parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.TransactionList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.TransactionList parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.TransactionList parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.TransactionList 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 org.tron.api.GrpcAPI.TransactionList parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.TransactionList 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 org.tron.api.GrpcAPI.TransactionList parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.TransactionList parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.TransactionList prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.TransactionList}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderrepeated .protocol.Transaction transaction = 1;
+ */
+ public java.util.Listrepeated .protocol.Transaction transaction = 1;
+ */
+ public int getTransactionCount() {
+ if (transactionBuilder_ == null) {
+ return transaction_.size();
+ } else {
+ return transactionBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public org.tron.protos.Protocol.Transaction getTransaction(int index) {
+ if (transactionBuilder_ == null) {
+ return transaction_.get(index);
+ } else {
+ return transactionBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public Builder setTransaction(
+ int index, org.tron.protos.Protocol.Transaction value) {
+ if (transactionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTransactionIsMutable();
+ transaction_.set(index, value);
+ onChanged();
+ } else {
+ transactionBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public Builder setTransaction(
+ int index, org.tron.protos.Protocol.Transaction.Builder builderForValue) {
+ if (transactionBuilder_ == null) {
+ ensureTransactionIsMutable();
+ transaction_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ transactionBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public Builder addTransaction(org.tron.protos.Protocol.Transaction value) {
+ if (transactionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTransactionIsMutable();
+ transaction_.add(value);
+ onChanged();
+ } else {
+ transactionBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public Builder addTransaction(
+ int index, org.tron.protos.Protocol.Transaction value) {
+ if (transactionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTransactionIsMutable();
+ transaction_.add(index, value);
+ onChanged();
+ } else {
+ transactionBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public Builder addTransaction(
+ org.tron.protos.Protocol.Transaction.Builder builderForValue) {
+ if (transactionBuilder_ == null) {
+ ensureTransactionIsMutable();
+ transaction_.add(builderForValue.build());
+ onChanged();
+ } else {
+ transactionBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public Builder addTransaction(
+ int index, org.tron.protos.Protocol.Transaction.Builder builderForValue) {
+ if (transactionBuilder_ == null) {
+ ensureTransactionIsMutable();
+ transaction_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ transactionBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public Builder addAllTransaction(
+ java.lang.Iterable extends org.tron.protos.Protocol.Transaction> values) {
+ if (transactionBuilder_ == null) {
+ ensureTransactionIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, transaction_);
+ onChanged();
+ } else {
+ transactionBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public Builder clearTransaction() {
+ if (transactionBuilder_ == null) {
+ transaction_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ transactionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public Builder removeTransaction(int index) {
+ if (transactionBuilder_ == null) {
+ ensureTransactionIsMutable();
+ transaction_.remove(index);
+ onChanged();
+ } else {
+ transactionBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public org.tron.protos.Protocol.Transaction.Builder getTransactionBuilder(
+ int index) {
+ return getTransactionFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public org.tron.protos.Protocol.TransactionOrBuilder getTransactionOrBuilder(
+ int index) {
+ if (transactionBuilder_ == null) {
+ return transaction_.get(index); } else {
+ return transactionBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public java.util.List extends org.tron.protos.Protocol.TransactionOrBuilder>
+ getTransactionOrBuilderList() {
+ if (transactionBuilder_ != null) {
+ return transactionBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(transaction_);
+ }
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public org.tron.protos.Protocol.Transaction.Builder addTransactionBuilder() {
+ return getTransactionFieldBuilder().addBuilder(
+ org.tron.protos.Protocol.Transaction.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public org.tron.protos.Protocol.Transaction.Builder addTransactionBuilder(
+ int index) {
+ return getTransactionFieldBuilder().addBuilder(
+ index, org.tron.protos.Protocol.Transaction.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.Transaction transaction = 1;
+ */
+ public java.util.Listbytes fromAddress = 1;
+ */
+ com.google.protobuf.ByteString getFromAddress();
+
+ /**
+ * bytes toAddress = 2;
+ */
+ com.google.protobuf.ByteString getToAddress();
+ }
+ /**
+ * Protobuf type {@code protocol.DelegatedResourceMessage}
+ */
+ public static final class DelegatedResourceMessage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.DelegatedResourceMessage)
+ DelegatedResourceMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DelegatedResourceMessage.newBuilder() to construct.
+ private DelegatedResourceMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DelegatedResourceMessage() {
+ fromAddress_ = com.google.protobuf.ByteString.EMPTY;
+ toAddress_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DelegatedResourceMessage(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+
+ fromAddress_ = input.readBytes();
+ break;
+ }
+ case 18: {
+
+ toAddress_ = input.readBytes();
+ 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 org.tron.api.GrpcAPI.internal_static_protocol_DelegatedResourceMessage_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.tron.api.GrpcAPI.internal_static_protocol_DelegatedResourceMessage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.tron.api.GrpcAPI.DelegatedResourceMessage.class, org.tron.api.GrpcAPI.DelegatedResourceMessage.Builder.class);
+ }
+
+ public static final int FROMADDRESS_FIELD_NUMBER = 1;
+ private com.google.protobuf.ByteString fromAddress_;
+ /**
+ * bytes fromAddress = 1;
+ */
+ public com.google.protobuf.ByteString getFromAddress() {
+ return fromAddress_;
+ }
+
+ public static final int TOADDRESS_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString toAddress_;
+ /**
+ * bytes toAddress = 2;
+ */
+ public com.google.protobuf.ByteString getToAddress() {
+ return toAddress_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!fromAddress_.isEmpty()) {
+ output.writeBytes(1, fromAddress_);
+ }
+ if (!toAddress_.isEmpty()) {
+ output.writeBytes(2, toAddress_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!fromAddress_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, fromAddress_);
+ }
+ if (!toAddress_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, toAddress_);
+ }
+ 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 org.tron.api.GrpcAPI.DelegatedResourceMessage)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.DelegatedResourceMessage other = (org.tron.api.GrpcAPI.DelegatedResourceMessage) obj;
+
+ boolean result = true;
+ result = result && getFromAddress()
+ .equals(other.getFromAddress());
+ result = result && getToAddress()
+ .equals(other.getToAddress());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + FROMADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getFromAddress().hashCode();
+ hash = (37 * hash) + TOADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getToAddress().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.DelegatedResourceMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceMessage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceMessage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceMessage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceMessage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceMessage 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 org.tron.api.GrpcAPI.DelegatedResourceMessage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceMessage 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 org.tron.api.GrpcAPI.DelegatedResourceMessage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceMessage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.DelegatedResourceMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.DelegatedResourceMessage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbytes fromAddress = 1;
+ */
+ public com.google.protobuf.ByteString getFromAddress() {
+ return fromAddress_;
+ }
+ /**
+ * bytes fromAddress = 1;
+ */
+ public Builder setFromAddress(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ fromAddress_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes fromAddress = 1;
+ */
+ public Builder clearFromAddress() {
+
+ fromAddress_ = getDefaultInstance().getFromAddress();
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString toAddress_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * bytes toAddress = 2;
+ */
+ public com.google.protobuf.ByteString getToAddress() {
+ return toAddress_;
+ }
+ /**
+ * bytes toAddress = 2;
+ */
+ public Builder setToAddress(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ toAddress_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes toAddress = 2;
+ */
+ public Builder clearToAddress() {
+
+ toAddress_ = getDefaultInstance().getToAddress();
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.DelegatedResourceMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.DelegatedResourceMessage)
+ private static final org.tron.api.GrpcAPI.DelegatedResourceMessage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.DelegatedResourceMessage();
+ }
+
+ public static org.tron.api.GrpcAPI.DelegatedResourceMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ java.util.Listrepeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ org.tron.protos.Protocol.DelegatedResource getDelegatedResource(int index);
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ int getDelegatedResourceCount();
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ java.util.List extends org.tron.protos.Protocol.DelegatedResourceOrBuilder>
+ getDelegatedResourceOrBuilderList();
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ org.tron.protos.Protocol.DelegatedResourceOrBuilder getDelegatedResourceOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code protocol.DelegatedResourceList}
+ */
+ public static final class DelegatedResourceList extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.DelegatedResourceList)
+ DelegatedResourceListOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DelegatedResourceList.newBuilder() to construct.
+ private DelegatedResourceList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DelegatedResourceList() {
+ delegatedResource_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DelegatedResourceList(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ delegatedResource_ = new java.util.ArrayListrepeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public java.util.Listrepeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public java.util.List extends org.tron.protos.Protocol.DelegatedResourceOrBuilder>
+ getDelegatedResourceOrBuilderList() {
+ return delegatedResource_;
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public int getDelegatedResourceCount() {
+ return delegatedResource_.size();
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public org.tron.protos.Protocol.DelegatedResource getDelegatedResource(int index) {
+ return delegatedResource_.get(index);
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public org.tron.protos.Protocol.DelegatedResourceOrBuilder getDelegatedResourceOrBuilder(
+ int index) {
+ return delegatedResource_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < delegatedResource_.size(); i++) {
+ output.writeMessage(1, delegatedResource_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < delegatedResource_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, delegatedResource_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.tron.api.GrpcAPI.DelegatedResourceList)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.DelegatedResourceList other = (org.tron.api.GrpcAPI.DelegatedResourceList) obj;
+
+ boolean result = true;
+ result = result && getDelegatedResourceList()
+ .equals(other.getDelegatedResourceList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getDelegatedResourceCount() > 0) {
+ hash = (37 * hash) + DELEGATEDRESOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getDelegatedResourceList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.DelegatedResourceList parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceList parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceList parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceList parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceList parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceList 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 org.tron.api.GrpcAPI.DelegatedResourceList parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceList 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 org.tron.api.GrpcAPI.DelegatedResourceList parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.DelegatedResourceList parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.DelegatedResourceList prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.DelegatedResourceList}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderrepeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public java.util.Listrepeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public int getDelegatedResourceCount() {
+ if (delegatedResourceBuilder_ == null) {
+ return delegatedResource_.size();
+ } else {
+ return delegatedResourceBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public org.tron.protos.Protocol.DelegatedResource getDelegatedResource(int index) {
+ if (delegatedResourceBuilder_ == null) {
+ return delegatedResource_.get(index);
+ } else {
+ return delegatedResourceBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public Builder setDelegatedResource(
+ int index, org.tron.protos.Protocol.DelegatedResource value) {
+ if (delegatedResourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDelegatedResourceIsMutable();
+ delegatedResource_.set(index, value);
+ onChanged();
+ } else {
+ delegatedResourceBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public Builder setDelegatedResource(
+ int index, org.tron.protos.Protocol.DelegatedResource.Builder builderForValue) {
+ if (delegatedResourceBuilder_ == null) {
+ ensureDelegatedResourceIsMutable();
+ delegatedResource_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ delegatedResourceBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public Builder addDelegatedResource(org.tron.protos.Protocol.DelegatedResource value) {
+ if (delegatedResourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDelegatedResourceIsMutable();
+ delegatedResource_.add(value);
+ onChanged();
+ } else {
+ delegatedResourceBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public Builder addDelegatedResource(
+ int index, org.tron.protos.Protocol.DelegatedResource value) {
+ if (delegatedResourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDelegatedResourceIsMutable();
+ delegatedResource_.add(index, value);
+ onChanged();
+ } else {
+ delegatedResourceBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public Builder addDelegatedResource(
+ org.tron.protos.Protocol.DelegatedResource.Builder builderForValue) {
+ if (delegatedResourceBuilder_ == null) {
+ ensureDelegatedResourceIsMutable();
+ delegatedResource_.add(builderForValue.build());
+ onChanged();
+ } else {
+ delegatedResourceBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public Builder addDelegatedResource(
+ int index, org.tron.protos.Protocol.DelegatedResource.Builder builderForValue) {
+ if (delegatedResourceBuilder_ == null) {
+ ensureDelegatedResourceIsMutable();
+ delegatedResource_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ delegatedResourceBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public Builder addAllDelegatedResource(
+ java.lang.Iterable extends org.tron.protos.Protocol.DelegatedResource> values) {
+ if (delegatedResourceBuilder_ == null) {
+ ensureDelegatedResourceIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, delegatedResource_);
+ onChanged();
+ } else {
+ delegatedResourceBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public Builder clearDelegatedResource() {
+ if (delegatedResourceBuilder_ == null) {
+ delegatedResource_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ delegatedResourceBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public Builder removeDelegatedResource(int index) {
+ if (delegatedResourceBuilder_ == null) {
+ ensureDelegatedResourceIsMutable();
+ delegatedResource_.remove(index);
+ onChanged();
+ } else {
+ delegatedResourceBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public org.tron.protos.Protocol.DelegatedResource.Builder getDelegatedResourceBuilder(
+ int index) {
+ return getDelegatedResourceFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public org.tron.protos.Protocol.DelegatedResourceOrBuilder getDelegatedResourceOrBuilder(
+ int index) {
+ if (delegatedResourceBuilder_ == null) {
+ return delegatedResource_.get(index); } else {
+ return delegatedResourceBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public java.util.List extends org.tron.protos.Protocol.DelegatedResourceOrBuilder>
+ getDelegatedResourceOrBuilderList() {
+ if (delegatedResourceBuilder_ != null) {
+ return delegatedResourceBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(delegatedResource_);
+ }
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public org.tron.protos.Protocol.DelegatedResource.Builder addDelegatedResourceBuilder() {
+ return getDelegatedResourceFieldBuilder().addBuilder(
+ org.tron.protos.Protocol.DelegatedResource.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public org.tron.protos.Protocol.DelegatedResource.Builder addDelegatedResourceBuilder(
+ int index) {
+ return getDelegatedResourceFieldBuilder().addBuilder(
+ index, org.tron.protos.Protocol.DelegatedResource.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.DelegatedResource delegatedResource = 1;
+ */
+ public java.util.Listrepeated .protocol.Node nodes = 1;
+ */
+ java.util.Listrepeated .protocol.Node nodes = 1;
+ */
+ org.tron.api.GrpcAPI.Node getNodes(int index);
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ int getNodesCount();
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ java.util.List extends org.tron.api.GrpcAPI.NodeOrBuilder>
+ getNodesOrBuilderList();
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ org.tron.api.GrpcAPI.NodeOrBuilder getNodesOrBuilder(
+ int index);
+ }
+ /**
+ * + * Gossip node list + *+ * + * Protobuf type {@code protocol.NodeList} + */ + public static final class NodeList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:protocol.NodeList) + NodeListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeList.newBuilder() to construct. + private NodeList(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private NodeList() { + nodes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeList( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + nodes_ = new java.util.ArrayList
repeated .protocol.Node nodes = 1;
+ */
+ public java.util.Listrepeated .protocol.Node nodes = 1;
+ */
+ public java.util.List extends org.tron.api.GrpcAPI.NodeOrBuilder>
+ getNodesOrBuilderList() {
+ return nodes_;
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public int getNodesCount() {
+ return nodes_.size();
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public org.tron.api.GrpcAPI.Node getNodes(int index) {
+ return nodes_.get(index);
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public org.tron.api.GrpcAPI.NodeOrBuilder getNodesOrBuilder(
+ int index) {
+ return nodes_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < nodes_.size(); i++) {
+ output.writeMessage(1, nodes_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < nodes_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, nodes_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.tron.api.GrpcAPI.NodeList)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.NodeList other = (org.tron.api.GrpcAPI.NodeList) obj;
+
+ boolean result = true;
+ result = result && getNodesList()
+ .equals(other.getNodesList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getNodesCount() > 0) {
+ hash = (37 * hash) + NODES_FIELD_NUMBER;
+ hash = (53 * hash) + getNodesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.NodeList parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.NodeList parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.NodeList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.NodeList parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.NodeList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.NodeList parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.NodeList parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.NodeList 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 org.tron.api.GrpcAPI.NodeList parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.NodeList 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 org.tron.api.GrpcAPI.NodeList parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.NodeList parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.NodeList prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * Gossip node list + *+ * + * Protobuf type {@code protocol.NodeList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
repeated .protocol.Node nodes = 1;
+ */
+ public java.util.Listrepeated .protocol.Node nodes = 1;
+ */
+ public int getNodesCount() {
+ if (nodesBuilder_ == null) {
+ return nodes_.size();
+ } else {
+ return nodesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public org.tron.api.GrpcAPI.Node getNodes(int index) {
+ if (nodesBuilder_ == null) {
+ return nodes_.get(index);
+ } else {
+ return nodesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public Builder setNodes(
+ int index, org.tron.api.GrpcAPI.Node value) {
+ if (nodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNodesIsMutable();
+ nodes_.set(index, value);
+ onChanged();
+ } else {
+ nodesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public Builder setNodes(
+ int index, org.tron.api.GrpcAPI.Node.Builder builderForValue) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ nodesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public Builder addNodes(org.tron.api.GrpcAPI.Node value) {
+ if (nodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNodesIsMutable();
+ nodes_.add(value);
+ onChanged();
+ } else {
+ nodesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public Builder addNodes(
+ int index, org.tron.api.GrpcAPI.Node value) {
+ if (nodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNodesIsMutable();
+ nodes_.add(index, value);
+ onChanged();
+ } else {
+ nodesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public Builder addNodes(
+ org.tron.api.GrpcAPI.Node.Builder builderForValue) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ nodesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public Builder addNodes(
+ int index, org.tron.api.GrpcAPI.Node.Builder builderForValue) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ nodesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public Builder addAllNodes(
+ java.lang.Iterable extends org.tron.api.GrpcAPI.Node> values) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, nodes_);
+ onChanged();
+ } else {
+ nodesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public Builder clearNodes() {
+ if (nodesBuilder_ == null) {
+ nodes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ nodesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public Builder removeNodes(int index) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.remove(index);
+ onChanged();
+ } else {
+ nodesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public org.tron.api.GrpcAPI.Node.Builder getNodesBuilder(
+ int index) {
+ return getNodesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public org.tron.api.GrpcAPI.NodeOrBuilder getNodesOrBuilder(
+ int index) {
+ if (nodesBuilder_ == null) {
+ return nodes_.get(index); } else {
+ return nodesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public java.util.List extends org.tron.api.GrpcAPI.NodeOrBuilder>
+ getNodesOrBuilderList() {
+ if (nodesBuilder_ != null) {
+ return nodesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(nodes_);
+ }
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public org.tron.api.GrpcAPI.Node.Builder addNodesBuilder() {
+ return getNodesFieldBuilder().addBuilder(
+ org.tron.api.GrpcAPI.Node.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public org.tron.api.GrpcAPI.Node.Builder addNodesBuilder(
+ int index) {
+ return getNodesFieldBuilder().addBuilder(
+ index, org.tron.api.GrpcAPI.Node.getDefaultInstance());
+ }
+ /**
+ * repeated .protocol.Node nodes = 1;
+ */
+ public java.util.List.protocol.Address address = 1;
+ */
+ boolean hasAddress();
+ /**
+ * .protocol.Address address = 1;
+ */
+ org.tron.api.GrpcAPI.Address getAddress();
+ /**
+ * .protocol.Address address = 1;
+ */
+ org.tron.api.GrpcAPI.AddressOrBuilder getAddressOrBuilder();
+ }
+ /**
+ * + * Gossip node + *+ * + * Protobuf type {@code protocol.Node} + */ + public static final class Node extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:protocol.Node) + NodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Node.newBuilder() to construct. + private Node(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Node() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Node( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + org.tron.api.GrpcAPI.Address.Builder subBuilder = null; + if (address_ != null) { + subBuilder = address_.toBuilder(); + } + address_ = input.readMessage(org.tron.api.GrpcAPI.Address.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(address_); + address_ = subBuilder.buildPartial(); + } + + 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 org.tron.api.GrpcAPI.internal_static_protocol_Node_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tron.api.GrpcAPI.internal_static_protocol_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tron.api.GrpcAPI.Node.class, org.tron.api.GrpcAPI.Node.Builder.class); + } + + public static final int ADDRESS_FIELD_NUMBER = 1; + private org.tron.api.GrpcAPI.Address address_; + /** + *
.protocol.Address address = 1;
+ */
+ public boolean hasAddress() {
+ return address_ != null;
+ }
+ /**
+ * .protocol.Address address = 1;
+ */
+ public org.tron.api.GrpcAPI.Address getAddress() {
+ return address_ == null ? org.tron.api.GrpcAPI.Address.getDefaultInstance() : address_;
+ }
+ /**
+ * .protocol.Address address = 1;
+ */
+ public org.tron.api.GrpcAPI.AddressOrBuilder getAddressOrBuilder() {
+ return getAddress();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (address_ != null) {
+ output.writeMessage(1, getAddress());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (address_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getAddress());
+ }
+ 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 org.tron.api.GrpcAPI.Node)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.Node other = (org.tron.api.GrpcAPI.Node) obj;
+
+ boolean result = true;
+ result = result && (hasAddress() == other.hasAddress());
+ if (hasAddress()) {
+ result = result && getAddress()
+ .equals(other.getAddress());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasAddress()) {
+ hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getAddress().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.Node parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.Node parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.Node parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.Node parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.Node parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.Node parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.Node parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.Node 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 org.tron.api.GrpcAPI.Node parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.Node 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 org.tron.api.GrpcAPI.Node parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.Node parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.Node prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * Gossip node + *+ * + * Protobuf type {@code protocol.Node} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
.protocol.Address address = 1;
+ */
+ public boolean hasAddress() {
+ return addressBuilder_ != null || address_ != null;
+ }
+ /**
+ * .protocol.Address address = 1;
+ */
+ public org.tron.api.GrpcAPI.Address getAddress() {
+ if (addressBuilder_ == null) {
+ return address_ == null ? org.tron.api.GrpcAPI.Address.getDefaultInstance() : address_;
+ } else {
+ return addressBuilder_.getMessage();
+ }
+ }
+ /**
+ * .protocol.Address address = 1;
+ */
+ public Builder setAddress(org.tron.api.GrpcAPI.Address value) {
+ if (addressBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ address_ = value;
+ onChanged();
+ } else {
+ addressBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .protocol.Address address = 1;
+ */
+ public Builder setAddress(
+ org.tron.api.GrpcAPI.Address.Builder builderForValue) {
+ if (addressBuilder_ == null) {
+ address_ = builderForValue.build();
+ onChanged();
+ } else {
+ addressBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .protocol.Address address = 1;
+ */
+ public Builder mergeAddress(org.tron.api.GrpcAPI.Address value) {
+ if (addressBuilder_ == null) {
+ if (address_ != null) {
+ address_ =
+ org.tron.api.GrpcAPI.Address.newBuilder(address_).mergeFrom(value).buildPartial();
+ } else {
+ address_ = value;
+ }
+ onChanged();
+ } else {
+ addressBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .protocol.Address address = 1;
+ */
+ public Builder clearAddress() {
+ if (addressBuilder_ == null) {
+ address_ = null;
+ onChanged();
+ } else {
+ address_ = null;
+ addressBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .protocol.Address address = 1;
+ */
+ public org.tron.api.GrpcAPI.Address.Builder getAddressBuilder() {
+
+ onChanged();
+ return getAddressFieldBuilder().getBuilder();
+ }
+ /**
+ * .protocol.Address address = 1;
+ */
+ public org.tron.api.GrpcAPI.AddressOrBuilder getAddressOrBuilder() {
+ if (addressBuilder_ != null) {
+ return addressBuilder_.getMessageOrBuilder();
+ } else {
+ return address_ == null ?
+ org.tron.api.GrpcAPI.Address.getDefaultInstance() : address_;
+ }
+ }
+ /**
+ * .protocol.Address address = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ org.tron.api.GrpcAPI.Address, org.tron.api.GrpcAPI.Address.Builder, org.tron.api.GrpcAPI.AddressOrBuilder>
+ getAddressFieldBuilder() {
+ if (addressBuilder_ == null) {
+ addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ org.tron.api.GrpcAPI.Address, org.tron.api.GrpcAPI.Address.Builder, org.tron.api.GrpcAPI.AddressOrBuilder>(
+ getAddress(),
+ getParentForChildren(),
+ isClean());
+ address_ = null;
+ }
+ return addressBuilder_;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.Node)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.Node)
+ private static final org.tron.api.GrpcAPI.Node DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.Node();
+ }
+
+ public static org.tron.api.GrpcAPI.Node getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserbytes host = 1;
+ */
+ com.google.protobuf.ByteString getHost();
+
+ /**
+ * int32 port = 2;
+ */
+ int getPort();
+ }
+ /**
+ * + * Gossip node address + *+ * + * Protobuf type {@code protocol.Address} + */ + public static final class Address extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:protocol.Address) + AddressOrBuilder { + private static final long serialVersionUID = 0L; + // Use Address.newBuilder() to construct. + private Address(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Address() { + host_ = com.google.protobuf.ByteString.EMPTY; + port_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Address( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + host_ = input.readBytes(); + break; + } + case 16: { + + port_ = input.readInt32(); + 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 org.tron.api.GrpcAPI.internal_static_protocol_Address_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.tron.api.GrpcAPI.internal_static_protocol_Address_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.tron.api.GrpcAPI.Address.class, org.tron.api.GrpcAPI.Address.Builder.class); + } + + public static final int HOST_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString host_; + /** + *
bytes host = 1;
+ */
+ public com.google.protobuf.ByteString getHost() {
+ return host_;
+ }
+
+ public static final int PORT_FIELD_NUMBER = 2;
+ private int port_;
+ /**
+ * int32 port = 2;
+ */
+ public int getPort() {
+ return port_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!host_.isEmpty()) {
+ output.writeBytes(1, host_);
+ }
+ if (port_ != 0) {
+ output.writeInt32(2, port_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!host_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, host_);
+ }
+ if (port_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, port_);
+ }
+ 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 org.tron.api.GrpcAPI.Address)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.Address other = (org.tron.api.GrpcAPI.Address) obj;
+
+ boolean result = true;
+ result = result && getHost()
+ .equals(other.getHost());
+ result = result && (getPort()
+ == other.getPort());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + HOST_FIELD_NUMBER;
+ hash = (53 * hash) + getHost().hashCode();
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.Address parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.Address parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.Address parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.Address parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.Address parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.Address parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.Address parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.Address 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 org.tron.api.GrpcAPI.Address parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.Address 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 org.tron.api.GrpcAPI.Address parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.Address parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.Address prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * Gossip node address + *+ * + * Protobuf type {@code protocol.Address} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
bytes host = 1;
+ */
+ public com.google.protobuf.ByteString getHost() {
+ return host_;
+ }
+ /**
+ * bytes host = 1;
+ */
+ public Builder setHost(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ host_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes host = 1;
+ */
+ public Builder clearHost() {
+
+ host_ = getDefaultInstance().getHost();
+ onChanged();
+ return this;
+ }
+
+ private int port_ ;
+ /**
+ * int32 port = 2;
+ */
+ public int getPort() {
+ return port_;
+ }
+ /**
+ * int32 port = 2;
+ */
+ public Builder setPort(int value) {
+
+ port_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 port = 2;
+ */
+ public Builder clearPort() {
+
+ port_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.Address)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.Address)
+ private static final org.tron.api.GrpcAPI.Address DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.Address();
+ }
+
+ public static org.tron.api.GrpcAPI.Address getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ public Address parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Address(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ public org.tron.api.GrpcAPI.Address getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface EmptyMessageOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:protocol.EmptyMessage)
+ com.google.protobuf.MessageOrBuilder {
+ }
+ /**
+ * Protobuf type {@code protocol.EmptyMessage}
+ */
+ public static final class EmptyMessage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.EmptyMessage)
+ EmptyMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use EmptyMessage.newBuilder() to construct.
+ private EmptyMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private EmptyMessage() {
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private EmptyMessage(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ 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 org.tron.api.GrpcAPI.internal_static_protocol_EmptyMessage_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.tron.api.GrpcAPI.internal_static_protocol_EmptyMessage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.tron.api.GrpcAPI.EmptyMessage.class, org.tron.api.GrpcAPI.EmptyMessage.Builder.class);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ 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 org.tron.api.GrpcAPI.EmptyMessage)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.EmptyMessage other = (org.tron.api.GrpcAPI.EmptyMessage) obj;
+
+ boolean result = true;
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.EmptyMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.EmptyMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.EmptyMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.EmptyMessage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.EmptyMessage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.EmptyMessage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.EmptyMessage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.EmptyMessage 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 org.tron.api.GrpcAPI.EmptyMessage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.EmptyMessage 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 org.tron.api.GrpcAPI.EmptyMessage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.EmptyMessage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.EmptyMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.EmptyMessage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderint64 num = 1;
+ */
+ long getNum();
+ }
+ /**
+ * Protobuf type {@code protocol.NumberMessage}
+ */
+ public static final class NumberMessage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.NumberMessage)
+ NumberMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use NumberMessage.newBuilder() to construct.
+ private NumberMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private NumberMessage() {
+ num_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private NumberMessage(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ num_ = input.readInt64();
+ 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 org.tron.api.GrpcAPI.internal_static_protocol_NumberMessage_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.tron.api.GrpcAPI.internal_static_protocol_NumberMessage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.tron.api.GrpcAPI.NumberMessage.class, org.tron.api.GrpcAPI.NumberMessage.Builder.class);
+ }
+
+ public static final int NUM_FIELD_NUMBER = 1;
+ private long num_;
+ /**
+ * int64 num = 1;
+ */
+ public long getNum() {
+ return num_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (num_ != 0L) {
+ output.writeInt64(1, num_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (num_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, num_);
+ }
+ 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 org.tron.api.GrpcAPI.NumberMessage)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.NumberMessage other = (org.tron.api.GrpcAPI.NumberMessage) obj;
+
+ boolean result = true;
+ result = result && (getNum()
+ == other.getNum());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NUM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getNum());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.NumberMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.NumberMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.NumberMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.NumberMessage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.NumberMessage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.NumberMessage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.NumberMessage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.NumberMessage 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 org.tron.api.GrpcAPI.NumberMessage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.NumberMessage 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 org.tron.api.GrpcAPI.NumberMessage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.NumberMessage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.NumberMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.NumberMessage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderint64 num = 1;
+ */
+ public long getNum() {
+ return num_;
+ }
+ /**
+ * int64 num = 1;
+ */
+ public Builder setNum(long value) {
+
+ num_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 num = 1;
+ */
+ public Builder clearNum() {
+
+ num_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.NumberMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.NumberMessage)
+ private static final org.tron.api.GrpcAPI.NumberMessage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.NumberMessage();
+ }
+
+ public static org.tron.api.GrpcAPI.NumberMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserbytes value = 1;
+ */
+ com.google.protobuf.ByteString getValue();
+ }
+ /**
+ * Protobuf type {@code protocol.BytesMessage}
+ */
+ public static final class BytesMessage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.BytesMessage)
+ BytesMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BytesMessage.newBuilder() to construct.
+ private BytesMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BytesMessage() {
+ value_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BytesMessage(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+
+ value_ = input.readBytes();
+ 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 org.tron.api.GrpcAPI.internal_static_protocol_BytesMessage_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.tron.api.GrpcAPI.internal_static_protocol_BytesMessage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.tron.api.GrpcAPI.BytesMessage.class, org.tron.api.GrpcAPI.BytesMessage.Builder.class);
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 1;
+ private com.google.protobuf.ByteString value_;
+ /**
+ * bytes value = 1;
+ */
+ public com.google.protobuf.ByteString getValue() {
+ return value_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!value_.isEmpty()) {
+ output.writeBytes(1, value_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!value_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, value_);
+ }
+ 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 org.tron.api.GrpcAPI.BytesMessage)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.BytesMessage other = (org.tron.api.GrpcAPI.BytesMessage) obj;
+
+ boolean result = true;
+ result = result && getValue()
+ .equals(other.getValue());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.BytesMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.BytesMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.BytesMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.BytesMessage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.BytesMessage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.BytesMessage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.BytesMessage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.BytesMessage 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 org.tron.api.GrpcAPI.BytesMessage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.BytesMessage 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 org.tron.api.GrpcAPI.BytesMessage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.BytesMessage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.BytesMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.BytesMessage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbytes value = 1;
+ */
+ public com.google.protobuf.ByteString getValue() {
+ return value_;
+ }
+ /**
+ * bytes value = 1;
+ */
+ public Builder setValue(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes value = 1;
+ */
+ public Builder clearValue() {
+
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.BytesMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.BytesMessage)
+ private static final org.tron.api.GrpcAPI.BytesMessage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.BytesMessage();
+ }
+
+ public static org.tron.api.GrpcAPI.BytesMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint64 beginInMilliseconds = 1;
+ */
+ long getBeginInMilliseconds();
+
+ /**
+ * int64 endInMilliseconds = 2;
+ */
+ long getEndInMilliseconds();
+ }
+ /**
+ * Protobuf type {@code protocol.TimeMessage}
+ */
+ public static final class TimeMessage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.TimeMessage)
+ TimeMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TimeMessage.newBuilder() to construct.
+ private TimeMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TimeMessage() {
+ beginInMilliseconds_ = 0L;
+ endInMilliseconds_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TimeMessage(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ beginInMilliseconds_ = input.readInt64();
+ break;
+ }
+ case 16: {
+
+ endInMilliseconds_ = input.readInt64();
+ 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 org.tron.api.GrpcAPI.internal_static_protocol_TimeMessage_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.tron.api.GrpcAPI.internal_static_protocol_TimeMessage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.tron.api.GrpcAPI.TimeMessage.class, org.tron.api.GrpcAPI.TimeMessage.Builder.class);
+ }
+
+ public static final int BEGININMILLISECONDS_FIELD_NUMBER = 1;
+ private long beginInMilliseconds_;
+ /**
+ * int64 beginInMilliseconds = 1;
+ */
+ public long getBeginInMilliseconds() {
+ return beginInMilliseconds_;
+ }
+
+ public static final int ENDINMILLISECONDS_FIELD_NUMBER = 2;
+ private long endInMilliseconds_;
+ /**
+ * int64 endInMilliseconds = 2;
+ */
+ public long getEndInMilliseconds() {
+ return endInMilliseconds_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (beginInMilliseconds_ != 0L) {
+ output.writeInt64(1, beginInMilliseconds_);
+ }
+ if (endInMilliseconds_ != 0L) {
+ output.writeInt64(2, endInMilliseconds_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (beginInMilliseconds_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, beginInMilliseconds_);
+ }
+ if (endInMilliseconds_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, endInMilliseconds_);
+ }
+ 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 org.tron.api.GrpcAPI.TimeMessage)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.TimeMessage other = (org.tron.api.GrpcAPI.TimeMessage) obj;
+
+ boolean result = true;
+ result = result && (getBeginInMilliseconds()
+ == other.getBeginInMilliseconds());
+ result = result && (getEndInMilliseconds()
+ == other.getEndInMilliseconds());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + BEGININMILLISECONDS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getBeginInMilliseconds());
+ hash = (37 * hash) + ENDINMILLISECONDS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getEndInMilliseconds());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.TimeMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.TimeMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.TimeMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.TimeMessage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.TimeMessage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.TimeMessage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.TimeMessage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.TimeMessage 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 org.tron.api.GrpcAPI.TimeMessage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.TimeMessage 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 org.tron.api.GrpcAPI.TimeMessage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.TimeMessage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.TimeMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.TimeMessage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderint64 beginInMilliseconds = 1;
+ */
+ public long getBeginInMilliseconds() {
+ return beginInMilliseconds_;
+ }
+ /**
+ * int64 beginInMilliseconds = 1;
+ */
+ public Builder setBeginInMilliseconds(long value) {
+
+ beginInMilliseconds_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 beginInMilliseconds = 1;
+ */
+ public Builder clearBeginInMilliseconds() {
+
+ beginInMilliseconds_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long endInMilliseconds_ ;
+ /**
+ * int64 endInMilliseconds = 2;
+ */
+ public long getEndInMilliseconds() {
+ return endInMilliseconds_;
+ }
+ /**
+ * int64 endInMilliseconds = 2;
+ */
+ public Builder setEndInMilliseconds(long value) {
+
+ endInMilliseconds_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 endInMilliseconds = 2;
+ */
+ public Builder clearEndInMilliseconds() {
+
+ endInMilliseconds_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.TimeMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.TimeMessage)
+ private static final org.tron.api.GrpcAPI.TimeMessage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.TimeMessage();
+ }
+
+ public static org.tron.api.GrpcAPI.TimeMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint64 startNum = 1;
+ */
+ long getStartNum();
+
+ /**
+ * int64 endNum = 2;
+ */
+ long getEndNum();
+ }
+ /**
+ * Protobuf type {@code protocol.BlockLimit}
+ */
+ public static final class BlockLimit extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.BlockLimit)
+ BlockLimitOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BlockLimit.newBuilder() to construct.
+ private BlockLimit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BlockLimit() {
+ startNum_ = 0L;
+ endNum_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BlockLimit(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ startNum_ = input.readInt64();
+ break;
+ }
+ case 16: {
+
+ endNum_ = input.readInt64();
+ 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 org.tron.api.GrpcAPI.internal_static_protocol_BlockLimit_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.tron.api.GrpcAPI.internal_static_protocol_BlockLimit_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.tron.api.GrpcAPI.BlockLimit.class, org.tron.api.GrpcAPI.BlockLimit.Builder.class);
+ }
+
+ public static final int STARTNUM_FIELD_NUMBER = 1;
+ private long startNum_;
+ /**
+ * int64 startNum = 1;
+ */
+ public long getStartNum() {
+ return startNum_;
+ }
+
+ public static final int ENDNUM_FIELD_NUMBER = 2;
+ private long endNum_;
+ /**
+ * int64 endNum = 2;
+ */
+ public long getEndNum() {
+ return endNum_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (startNum_ != 0L) {
+ output.writeInt64(1, startNum_);
+ }
+ if (endNum_ != 0L) {
+ output.writeInt64(2, endNum_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (startNum_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, startNum_);
+ }
+ if (endNum_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, endNum_);
+ }
+ 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 org.tron.api.GrpcAPI.BlockLimit)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.BlockLimit other = (org.tron.api.GrpcAPI.BlockLimit) obj;
+
+ boolean result = true;
+ result = result && (getStartNum()
+ == other.getStartNum());
+ result = result && (getEndNum()
+ == other.getEndNum());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + STARTNUM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getStartNum());
+ hash = (37 * hash) + ENDNUM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getEndNum());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.BlockLimit parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.BlockLimit parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.BlockLimit parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.BlockLimit parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.BlockLimit parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.BlockLimit parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.BlockLimit parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.BlockLimit 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 org.tron.api.GrpcAPI.BlockLimit parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.BlockLimit 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 org.tron.api.GrpcAPI.BlockLimit parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.BlockLimit parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.BlockLimit prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.BlockLimit}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderint64 startNum = 1;
+ */
+ public long getStartNum() {
+ return startNum_;
+ }
+ /**
+ * int64 startNum = 1;
+ */
+ public Builder setStartNum(long value) {
+
+ startNum_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 startNum = 1;
+ */
+ public Builder clearStartNum() {
+
+ startNum_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long endNum_ ;
+ /**
+ * int64 endNum = 2;
+ */
+ public long getEndNum() {
+ return endNum_;
+ }
+ /**
+ * int64 endNum = 2;
+ */
+ public Builder setEndNum(long value) {
+
+ endNum_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 endNum = 2;
+ */
+ public Builder clearEndNum() {
+
+ endNum_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.BlockLimit)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.BlockLimit)
+ private static final org.tron.api.GrpcAPI.BlockLimit DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.BlockLimit();
+ }
+
+ public static org.tron.api.GrpcAPI.BlockLimit getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserbytes transactionId = 1;
+ */
+ com.google.protobuf.ByteString getTransactionId();
+
+ /**
+ * int64 limitNum = 2;
+ */
+ long getLimitNum();
+ }
+ /**
+ * Protobuf type {@code protocol.TransactionLimit}
+ */
+ public static final class TransactionLimit extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.TransactionLimit)
+ TransactionLimitOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TransactionLimit.newBuilder() to construct.
+ private TransactionLimit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TransactionLimit() {
+ transactionId_ = com.google.protobuf.ByteString.EMPTY;
+ limitNum_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TransactionLimit(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+
+ transactionId_ = input.readBytes();
+ break;
+ }
+ case 16: {
+
+ limitNum_ = input.readInt64();
+ 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 org.tron.api.GrpcAPI.internal_static_protocol_TransactionLimit_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.tron.api.GrpcAPI.internal_static_protocol_TransactionLimit_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.tron.api.GrpcAPI.TransactionLimit.class, org.tron.api.GrpcAPI.TransactionLimit.Builder.class);
+ }
+
+ public static final int TRANSACTIONID_FIELD_NUMBER = 1;
+ private com.google.protobuf.ByteString transactionId_;
+ /**
+ * bytes transactionId = 1;
+ */
+ public com.google.protobuf.ByteString getTransactionId() {
+ return transactionId_;
+ }
+
+ public static final int LIMITNUM_FIELD_NUMBER = 2;
+ private long limitNum_;
+ /**
+ * int64 limitNum = 2;
+ */
+ public long getLimitNum() {
+ return limitNum_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!transactionId_.isEmpty()) {
+ output.writeBytes(1, transactionId_);
+ }
+ if (limitNum_ != 0L) {
+ output.writeInt64(2, limitNum_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!transactionId_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, transactionId_);
+ }
+ if (limitNum_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, limitNum_);
+ }
+ 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 org.tron.api.GrpcAPI.TransactionLimit)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.TransactionLimit other = (org.tron.api.GrpcAPI.TransactionLimit) obj;
+
+ boolean result = true;
+ result = result && getTransactionId()
+ .equals(other.getTransactionId());
+ result = result && (getLimitNum()
+ == other.getLimitNum());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TRANSACTIONID_FIELD_NUMBER;
+ hash = (53 * hash) + getTransactionId().hashCode();
+ hash = (37 * hash) + LIMITNUM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getLimitNum());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.TransactionLimit parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.TransactionLimit parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.TransactionLimit parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.TransactionLimit parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.TransactionLimit parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.TransactionLimit parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.TransactionLimit parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.TransactionLimit 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 org.tron.api.GrpcAPI.TransactionLimit parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.TransactionLimit 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 org.tron.api.GrpcAPI.TransactionLimit parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.TransactionLimit parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.TransactionLimit prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.TransactionLimit}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbytes transactionId = 1;
+ */
+ public com.google.protobuf.ByteString getTransactionId() {
+ return transactionId_;
+ }
+ /**
+ * bytes transactionId = 1;
+ */
+ public Builder setTransactionId(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ transactionId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes transactionId = 1;
+ */
+ public Builder clearTransactionId() {
+
+ transactionId_ = getDefaultInstance().getTransactionId();
+ onChanged();
+ return this;
+ }
+
+ private long limitNum_ ;
+ /**
+ * int64 limitNum = 2;
+ */
+ public long getLimitNum() {
+ return limitNum_;
+ }
+ /**
+ * int64 limitNum = 2;
+ */
+ public Builder setLimitNum(long value) {
+
+ limitNum_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 limitNum = 2;
+ */
+ public Builder clearLimitNum() {
+
+ limitNum_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.TransactionLimit)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.TransactionLimit)
+ private static final org.tron.api.GrpcAPI.TransactionLimit DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.TransactionLimit();
+ }
+
+ public static org.tron.api.GrpcAPI.TransactionLimit getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser.protocol.Account account = 1;
+ */
+ boolean hasAccount();
+ /**
+ * .protocol.Account account = 1;
+ */
+ org.tron.protos.Protocol.Account getAccount();
+ /**
+ * .protocol.Account account = 1;
+ */
+ org.tron.protos.Protocol.AccountOrBuilder getAccountOrBuilder();
+
+ /**
+ * int64 offset = 2;
+ */
+ long getOffset();
+
+ /**
+ * int64 limit = 3;
+ */
+ long getLimit();
+ }
+ /**
+ * Protobuf type {@code protocol.AccountPaginated}
+ */
+ public static final class AccountPaginated extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.AccountPaginated)
+ AccountPaginatedOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AccountPaginated.newBuilder() to construct.
+ private AccountPaginated(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AccountPaginated() {
+ offset_ = 0L;
+ limit_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private AccountPaginated(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ org.tron.protos.Protocol.Account.Builder subBuilder = null;
+ if (account_ != null) {
+ subBuilder = account_.toBuilder();
+ }
+ account_ = input.readMessage(org.tron.protos.Protocol.Account.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(account_);
+ account_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 16: {
+
+ offset_ = input.readInt64();
+ break;
+ }
+ case 24: {
+
+ limit_ = input.readInt64();
+ 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 org.tron.api.GrpcAPI.internal_static_protocol_AccountPaginated_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.tron.api.GrpcAPI.internal_static_protocol_AccountPaginated_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.tron.api.GrpcAPI.AccountPaginated.class, org.tron.api.GrpcAPI.AccountPaginated.Builder.class);
+ }
+
+ public static final int ACCOUNT_FIELD_NUMBER = 1;
+ private org.tron.protos.Protocol.Account account_;
+ /**
+ * .protocol.Account account = 1;
+ */
+ public boolean hasAccount() {
+ return account_ != null;
+ }
+ /**
+ * .protocol.Account account = 1;
+ */
+ public org.tron.protos.Protocol.Account getAccount() {
+ return account_ == null ? org.tron.protos.Protocol.Account.getDefaultInstance() : account_;
+ }
+ /**
+ * .protocol.Account account = 1;
+ */
+ public org.tron.protos.Protocol.AccountOrBuilder getAccountOrBuilder() {
+ return getAccount();
+ }
+
+ public static final int OFFSET_FIELD_NUMBER = 2;
+ private long offset_;
+ /**
+ * int64 offset = 2;
+ */
+ public long getOffset() {
+ return offset_;
+ }
+
+ public static final int LIMIT_FIELD_NUMBER = 3;
+ private long limit_;
+ /**
+ * int64 limit = 3;
+ */
+ public long getLimit() {
+ return limit_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (account_ != null) {
+ output.writeMessage(1, getAccount());
+ }
+ if (offset_ != 0L) {
+ output.writeInt64(2, offset_);
+ }
+ if (limit_ != 0L) {
+ output.writeInt64(3, limit_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (account_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getAccount());
+ }
+ if (offset_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, offset_);
+ }
+ if (limit_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(3, limit_);
+ }
+ 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 org.tron.api.GrpcAPI.AccountPaginated)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.AccountPaginated other = (org.tron.api.GrpcAPI.AccountPaginated) obj;
+
+ boolean result = true;
+ result = result && (hasAccount() == other.hasAccount());
+ if (hasAccount()) {
+ result = result && getAccount()
+ .equals(other.getAccount());
+ }
+ result = result && (getOffset()
+ == other.getOffset());
+ result = result && (getLimit()
+ == other.getLimit());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasAccount()) {
+ hash = (37 * hash) + ACCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getAccount().hashCode();
+ }
+ hash = (37 * hash) + OFFSET_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getOffset());
+ hash = (37 * hash) + LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getLimit());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.AccountPaginated parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.AccountPaginated parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.AccountPaginated parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.AccountPaginated parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.AccountPaginated parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.AccountPaginated parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.AccountPaginated parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.AccountPaginated 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 org.tron.api.GrpcAPI.AccountPaginated parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.AccountPaginated 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 org.tron.api.GrpcAPI.AccountPaginated parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.AccountPaginated parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.AccountPaginated prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.AccountPaginated}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder.protocol.Account account = 1;
+ */
+ public boolean hasAccount() {
+ return accountBuilder_ != null || account_ != null;
+ }
+ /**
+ * .protocol.Account account = 1;
+ */
+ public org.tron.protos.Protocol.Account getAccount() {
+ if (accountBuilder_ == null) {
+ return account_ == null ? org.tron.protos.Protocol.Account.getDefaultInstance() : account_;
+ } else {
+ return accountBuilder_.getMessage();
+ }
+ }
+ /**
+ * .protocol.Account account = 1;
+ */
+ public Builder setAccount(org.tron.protos.Protocol.Account value) {
+ if (accountBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ account_ = value;
+ onChanged();
+ } else {
+ accountBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .protocol.Account account = 1;
+ */
+ public Builder setAccount(
+ org.tron.protos.Protocol.Account.Builder builderForValue) {
+ if (accountBuilder_ == null) {
+ account_ = builderForValue.build();
+ onChanged();
+ } else {
+ accountBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .protocol.Account account = 1;
+ */
+ public Builder mergeAccount(org.tron.protos.Protocol.Account value) {
+ if (accountBuilder_ == null) {
+ if (account_ != null) {
+ account_ =
+ org.tron.protos.Protocol.Account.newBuilder(account_).mergeFrom(value).buildPartial();
+ } else {
+ account_ = value;
+ }
+ onChanged();
+ } else {
+ accountBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .protocol.Account account = 1;
+ */
+ public Builder clearAccount() {
+ if (accountBuilder_ == null) {
+ account_ = null;
+ onChanged();
+ } else {
+ account_ = null;
+ accountBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .protocol.Account account = 1;
+ */
+ public org.tron.protos.Protocol.Account.Builder getAccountBuilder() {
+
+ onChanged();
+ return getAccountFieldBuilder().getBuilder();
+ }
+ /**
+ * .protocol.Account account = 1;
+ */
+ public org.tron.protos.Protocol.AccountOrBuilder getAccountOrBuilder() {
+ if (accountBuilder_ != null) {
+ return accountBuilder_.getMessageOrBuilder();
+ } else {
+ return account_ == null ?
+ org.tron.protos.Protocol.Account.getDefaultInstance() : account_;
+ }
+ }
+ /**
+ * .protocol.Account account = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ org.tron.protos.Protocol.Account, org.tron.protos.Protocol.Account.Builder, org.tron.protos.Protocol.AccountOrBuilder>
+ getAccountFieldBuilder() {
+ if (accountBuilder_ == null) {
+ accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ org.tron.protos.Protocol.Account, org.tron.protos.Protocol.Account.Builder, org.tron.protos.Protocol.AccountOrBuilder>(
+ getAccount(),
+ getParentForChildren(),
+ isClean());
+ account_ = null;
+ }
+ return accountBuilder_;
+ }
+
+ private long offset_ ;
+ /**
+ * int64 offset = 2;
+ */
+ public long getOffset() {
+ return offset_;
+ }
+ /**
+ * int64 offset = 2;
+ */
+ public Builder setOffset(long value) {
+
+ offset_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 offset = 2;
+ */
+ public Builder clearOffset() {
+
+ offset_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long limit_ ;
+ /**
+ * int64 limit = 3;
+ */
+ public long getLimit() {
+ return limit_;
+ }
+ /**
+ * int64 limit = 3;
+ */
+ public Builder setLimit(long value) {
+
+ limit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 limit = 3;
+ */
+ public Builder clearLimit() {
+
+ limit_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.AccountPaginated)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.AccountPaginated)
+ private static final org.tron.api.GrpcAPI.AccountPaginated DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.AccountPaginated();
+ }
+
+ public static org.tron.api.GrpcAPI.AccountPaginated getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser.protocol.TimeMessage timeMessage = 1;
+ */
+ boolean hasTimeMessage();
+ /**
+ * .protocol.TimeMessage timeMessage = 1;
+ */
+ org.tron.api.GrpcAPI.TimeMessage getTimeMessage();
+ /**
+ * .protocol.TimeMessage timeMessage = 1;
+ */
+ org.tron.api.GrpcAPI.TimeMessageOrBuilder getTimeMessageOrBuilder();
+
+ /**
+ * int64 offset = 2;
+ */
+ long getOffset();
+
+ /**
+ * int64 limit = 3;
+ */
+ long getLimit();
+ }
+ /**
+ * Protobuf type {@code protocol.TimePaginatedMessage}
+ */
+ public static final class TimePaginatedMessage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.TimePaginatedMessage)
+ TimePaginatedMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TimePaginatedMessage.newBuilder() to construct.
+ private TimePaginatedMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TimePaginatedMessage() {
+ offset_ = 0L;
+ limit_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TimePaginatedMessage(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ org.tron.api.GrpcAPI.TimeMessage.Builder subBuilder = null;
+ if (timeMessage_ != null) {
+ subBuilder = timeMessage_.toBuilder();
+ }
+ timeMessage_ = input.readMessage(org.tron.api.GrpcAPI.TimeMessage.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(timeMessage_);
+ timeMessage_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 16: {
+
+ offset_ = input.readInt64();
+ break;
+ }
+ case 24: {
+
+ limit_ = input.readInt64();
+ 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 org.tron.api.GrpcAPI.internal_static_protocol_TimePaginatedMessage_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.tron.api.GrpcAPI.internal_static_protocol_TimePaginatedMessage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.tron.api.GrpcAPI.TimePaginatedMessage.class, org.tron.api.GrpcAPI.TimePaginatedMessage.Builder.class);
+ }
+
+ public static final int TIMEMESSAGE_FIELD_NUMBER = 1;
+ private org.tron.api.GrpcAPI.TimeMessage timeMessage_;
+ /**
+ * .protocol.TimeMessage timeMessage = 1;
+ */
+ public boolean hasTimeMessage() {
+ return timeMessage_ != null;
+ }
+ /**
+ * .protocol.TimeMessage timeMessage = 1;
+ */
+ public org.tron.api.GrpcAPI.TimeMessage getTimeMessage() {
+ return timeMessage_ == null ? org.tron.api.GrpcAPI.TimeMessage.getDefaultInstance() : timeMessage_;
+ }
+ /**
+ * .protocol.TimeMessage timeMessage = 1;
+ */
+ public org.tron.api.GrpcAPI.TimeMessageOrBuilder getTimeMessageOrBuilder() {
+ return getTimeMessage();
+ }
+
+ public static final int OFFSET_FIELD_NUMBER = 2;
+ private long offset_;
+ /**
+ * int64 offset = 2;
+ */
+ public long getOffset() {
+ return offset_;
+ }
+
+ public static final int LIMIT_FIELD_NUMBER = 3;
+ private long limit_;
+ /**
+ * int64 limit = 3;
+ */
+ public long getLimit() {
+ return limit_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (timeMessage_ != null) {
+ output.writeMessage(1, getTimeMessage());
+ }
+ if (offset_ != 0L) {
+ output.writeInt64(2, offset_);
+ }
+ if (limit_ != 0L) {
+ output.writeInt64(3, limit_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (timeMessage_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getTimeMessage());
+ }
+ if (offset_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, offset_);
+ }
+ if (limit_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(3, limit_);
+ }
+ 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 org.tron.api.GrpcAPI.TimePaginatedMessage)) {
+ return super.equals(obj);
+ }
+ org.tron.api.GrpcAPI.TimePaginatedMessage other = (org.tron.api.GrpcAPI.TimePaginatedMessage) obj;
+
+ boolean result = true;
+ result = result && (hasTimeMessage() == other.hasTimeMessage());
+ if (hasTimeMessage()) {
+ result = result && getTimeMessage()
+ .equals(other.getTimeMessage());
+ }
+ result = result && (getOffset()
+ == other.getOffset());
+ result = result && (getLimit()
+ == other.getLimit());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTimeMessage()) {
+ hash = (37 * hash) + TIMEMESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getTimeMessage().hashCode();
+ }
+ hash = (37 * hash) + OFFSET_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getOffset());
+ hash = (37 * hash) + LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getLimit());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.tron.api.GrpcAPI.TimePaginatedMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.TimePaginatedMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.TimePaginatedMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.TimePaginatedMessage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.TimePaginatedMessage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.tron.api.GrpcAPI.TimePaginatedMessage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.tron.api.GrpcAPI.TimePaginatedMessage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.TimePaginatedMessage 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 org.tron.api.GrpcAPI.TimePaginatedMessage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.TimePaginatedMessage 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 org.tron.api.GrpcAPI.TimePaginatedMessage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.tron.api.GrpcAPI.TimePaginatedMessage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.tron.api.GrpcAPI.TimePaginatedMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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 protocol.TimePaginatedMessage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder.protocol.TimeMessage timeMessage = 1;
+ */
+ public boolean hasTimeMessage() {
+ return timeMessageBuilder_ != null || timeMessage_ != null;
+ }
+ /**
+ * .protocol.TimeMessage timeMessage = 1;
+ */
+ public org.tron.api.GrpcAPI.TimeMessage getTimeMessage() {
+ if (timeMessageBuilder_ == null) {
+ return timeMessage_ == null ? org.tron.api.GrpcAPI.TimeMessage.getDefaultInstance() : timeMessage_;
+ } else {
+ return timeMessageBuilder_.getMessage();
+ }
+ }
+ /**
+ * .protocol.TimeMessage timeMessage = 1;
+ */
+ public Builder setTimeMessage(org.tron.api.GrpcAPI.TimeMessage value) {
+ if (timeMessageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ timeMessage_ = value;
+ onChanged();
+ } else {
+ timeMessageBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .protocol.TimeMessage timeMessage = 1;
+ */
+ public Builder setTimeMessage(
+ org.tron.api.GrpcAPI.TimeMessage.Builder builderForValue) {
+ if (timeMessageBuilder_ == null) {
+ timeMessage_ = builderForValue.build();
+ onChanged();
+ } else {
+ timeMessageBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .protocol.TimeMessage timeMessage = 1;
+ */
+ public Builder mergeTimeMessage(org.tron.api.GrpcAPI.TimeMessage value) {
+ if (timeMessageBuilder_ == null) {
+ if (timeMessage_ != null) {
+ timeMessage_ =
+ org.tron.api.GrpcAPI.TimeMessage.newBuilder(timeMessage_).mergeFrom(value).buildPartial();
+ } else {
+ timeMessage_ = value;
+ }
+ onChanged();
+ } else {
+ timeMessageBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .protocol.TimeMessage timeMessage = 1;
+ */
+ public Builder clearTimeMessage() {
+ if (timeMessageBuilder_ == null) {
+ timeMessage_ = null;
+ onChanged();
+ } else {
+ timeMessage_ = null;
+ timeMessageBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .protocol.TimeMessage timeMessage = 1;
+ */
+ public org.tron.api.GrpcAPI.TimeMessage.Builder getTimeMessageBuilder() {
+
+ onChanged();
+ return getTimeMessageFieldBuilder().getBuilder();
+ }
+ /**
+ * .protocol.TimeMessage timeMessage = 1;
+ */
+ public org.tron.api.GrpcAPI.TimeMessageOrBuilder getTimeMessageOrBuilder() {
+ if (timeMessageBuilder_ != null) {
+ return timeMessageBuilder_.getMessageOrBuilder();
+ } else {
+ return timeMessage_ == null ?
+ org.tron.api.GrpcAPI.TimeMessage.getDefaultInstance() : timeMessage_;
+ }
+ }
+ /**
+ * .protocol.TimeMessage timeMessage = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ org.tron.api.GrpcAPI.TimeMessage, org.tron.api.GrpcAPI.TimeMessage.Builder, org.tron.api.GrpcAPI.TimeMessageOrBuilder>
+ getTimeMessageFieldBuilder() {
+ if (timeMessageBuilder_ == null) {
+ timeMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ org.tron.api.GrpcAPI.TimeMessage, org.tron.api.GrpcAPI.TimeMessage.Builder, org.tron.api.GrpcAPI.TimeMessageOrBuilder>(
+ getTimeMessage(),
+ getParentForChildren(),
+ isClean());
+ timeMessage_ = null;
+ }
+ return timeMessageBuilder_;
+ }
+
+ private long offset_ ;
+ /**
+ * int64 offset = 2;
+ */
+ public long getOffset() {
+ return offset_;
+ }
+ /**
+ * int64 offset = 2;
+ */
+ public Builder setOffset(long value) {
+
+ offset_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 offset = 2;
+ */
+ public Builder clearOffset() {
+
+ offset_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long limit_ ;
+ /**
+ * int64 limit = 3;
+ */
+ public long getLimit() {
+ return limit_;
+ }
+ /**
+ * int64 limit = 3;
+ */
+ public Builder setLimit(long value) {
+
+ limit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 limit = 3;
+ */
+ public Builder clearLimit() {
+
+ limit_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.TimePaginatedMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.TimePaginatedMessage)
+ private static final org.tron.api.GrpcAPI.TimePaginatedMessage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.TimePaginatedMessage();
+ }
+
+ public static org.tron.api.GrpcAPI.TimePaginatedMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint64 freeNetUsed = 1;
+ */
+ long getFreeNetUsed();
+
+ /**
+ * int64 freeNetLimit = 2;
+ */
+ long getFreeNetLimit();
+
+ /**
+ * int64 NetUsed = 3;
+ */
+ long getNetUsed();
+
+ /**
+ * int64 NetLimit = 4;
+ */
+ long getNetLimit();
+
+ /**
+ * map<string, int64> assetNetUsed = 5;
+ */
+ int getAssetNetUsedCount();
+ /**
+ * map<string, int64> assetNetUsed = 5;
+ */
+ boolean containsAssetNetUsed(
+ java.lang.String key);
+ /**
+ * Use {@link #getAssetNetUsedMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+ java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ long getAssetNetUsedOrDefault(
+ java.lang.String key,
+ long defaultValue);
+ /**
+ * map<string, int64> assetNetUsed = 5;
+ */
+
+ long getAssetNetUsedOrThrow(
+ java.lang.String key);
+
+ /**
+ * map<string, int64> assetNetLimit = 6;
+ */
+ int getAssetNetLimitCount();
+ /**
+ * map<string, int64> assetNetLimit = 6;
+ */
+ boolean containsAssetNetLimit(
+ java.lang.String key);
+ /**
+ * Use {@link #getAssetNetLimitMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ long getAssetNetLimitOrDefault(
+ java.lang.String key,
+ long defaultValue);
+ /**
+ * map<string, int64> assetNetLimit = 6;
+ */
+
+ long getAssetNetLimitOrThrow(
+ java.lang.String key);
+
+ /**
+ * int64 TotalNetLimit = 7;
+ */
+ long getTotalNetLimit();
+
+ /**
+ * int64 TotalNetWeight = 8;
+ */
+ long getTotalNetWeight();
+ }
+ /**
+ * + *deprecated + *+ * + * Protobuf type {@code protocol.AccountNetMessage} + */ + public static final class AccountNetMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:protocol.AccountNetMessage) + AccountNetMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccountNetMessage.newBuilder() to construct. + private AccountNetMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private AccountNetMessage() { + freeNetUsed_ = 0L; + freeNetLimit_ = 0L; + netUsed_ = 0L; + netLimit_ = 0L; + totalNetLimit_ = 0L; + totalNetWeight_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AccountNetMessage( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + freeNetUsed_ = input.readInt64(); + break; + } + case 16: { + + freeNetLimit_ = input.readInt64(); + break; + } + case 24: { + + netUsed_ = input.readInt64(); + break; + } + case 32: { + + netLimit_ = input.readInt64(); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + assetNetUsed_ = com.google.protobuf.MapField.newMapField( + AssetNetUsedDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry
int64 freeNetUsed = 1;
+ */
+ public long getFreeNetUsed() {
+ return freeNetUsed_;
+ }
+
+ public static final int FREENETLIMIT_FIELD_NUMBER = 2;
+ private long freeNetLimit_;
+ /**
+ * int64 freeNetLimit = 2;
+ */
+ public long getFreeNetLimit() {
+ return freeNetLimit_;
+ }
+
+ public static final int NETUSED_FIELD_NUMBER = 3;
+ private long netUsed_;
+ /**
+ * int64 NetUsed = 3;
+ */
+ public long getNetUsed() {
+ return netUsed_;
+ }
+
+ public static final int NETLIMIT_FIELD_NUMBER = 4;
+ private long netLimit_;
+ /**
+ * int64 NetLimit = 4;
+ */
+ public long getNetLimit() {
+ return netLimit_;
+ }
+
+ public static final int ASSETNETUSED_FIELD_NUMBER = 5;
+ private static final class AssetNetUsedDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.Long> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, int64> assetNetUsed = 5;
+ */
+
+ public boolean containsAssetNetUsed(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAssetNetUsed().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAssetNetUsedMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public long getAssetNetUsedOrDefault(
+ java.lang.String key,
+ long defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public long getAssetNetUsedOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public boolean containsAssetNetLimit(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAssetNetLimit().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAssetNetLimitMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public long getAssetNetLimitOrDefault(
+ java.lang.String key,
+ long defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public long getAssetNetLimitOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapint64 TotalNetLimit = 7;
+ */
+ public long getTotalNetLimit() {
+ return totalNetLimit_;
+ }
+
+ public static final int TOTALNETWEIGHT_FIELD_NUMBER = 8;
+ private long totalNetWeight_;
+ /**
+ * int64 TotalNetWeight = 8;
+ */
+ public long getTotalNetWeight() {
+ return totalNetWeight_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (freeNetUsed_ != 0L) {
+ output.writeInt64(1, freeNetUsed_);
+ }
+ if (freeNetLimit_ != 0L) {
+ output.writeInt64(2, freeNetLimit_);
+ }
+ if (netUsed_ != 0L) {
+ output.writeInt64(3, netUsed_);
+ }
+ if (netLimit_ != 0L) {
+ output.writeInt64(4, netLimit_);
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetAssetNetUsed(),
+ AssetNetUsedDefaultEntryHolder.defaultEntry,
+ 5);
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetAssetNetLimit(),
+ AssetNetLimitDefaultEntryHolder.defaultEntry,
+ 6);
+ if (totalNetLimit_ != 0L) {
+ output.writeInt64(7, totalNetLimit_);
+ }
+ if (totalNetWeight_ != 0L) {
+ output.writeInt64(8, totalNetWeight_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (freeNetUsed_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, freeNetUsed_);
+ }
+ if (freeNetLimit_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, freeNetLimit_);
+ }
+ if (netUsed_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(3, netUsed_);
+ }
+ if (netLimit_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(4, netLimit_);
+ }
+ for (java.util.Map.Entry+ *deprecated + *+ * + * Protobuf type {@code protocol.AccountNetMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
int64 freeNetUsed = 1;
+ */
+ public long getFreeNetUsed() {
+ return freeNetUsed_;
+ }
+ /**
+ * int64 freeNetUsed = 1;
+ */
+ public Builder setFreeNetUsed(long value) {
+
+ freeNetUsed_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 freeNetUsed = 1;
+ */
+ public Builder clearFreeNetUsed() {
+
+ freeNetUsed_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long freeNetLimit_ ;
+ /**
+ * int64 freeNetLimit = 2;
+ */
+ public long getFreeNetLimit() {
+ return freeNetLimit_;
+ }
+ /**
+ * int64 freeNetLimit = 2;
+ */
+ public Builder setFreeNetLimit(long value) {
+
+ freeNetLimit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 freeNetLimit = 2;
+ */
+ public Builder clearFreeNetLimit() {
+
+ freeNetLimit_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long netUsed_ ;
+ /**
+ * int64 NetUsed = 3;
+ */
+ public long getNetUsed() {
+ return netUsed_;
+ }
+ /**
+ * int64 NetUsed = 3;
+ */
+ public Builder setNetUsed(long value) {
+
+ netUsed_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 NetUsed = 3;
+ */
+ public Builder clearNetUsed() {
+
+ netUsed_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long netLimit_ ;
+ /**
+ * int64 NetLimit = 4;
+ */
+ public long getNetLimit() {
+ return netLimit_;
+ }
+ /**
+ * int64 NetLimit = 4;
+ */
+ public Builder setNetLimit(long value) {
+
+ netLimit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 NetLimit = 4;
+ */
+ public Builder clearNetLimit() {
+
+ netLimit_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.Long> assetNetUsed_;
+ private com.google.protobuf.MapFieldmap<string, int64> assetNetUsed = 5;
+ */
+
+ public boolean containsAssetNetUsed(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAssetNetUsed().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAssetNetUsedMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public long getAssetNetUsedOrDefault(
+ java.lang.String key,
+ long defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public long getAssetNetUsedOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public Builder removeAssetNetUsed(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableAssetNetUsed().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+ public Builder putAssetNetUsed(
+ java.lang.String key,
+ long value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+
+ internalGetMutableAssetNetUsed().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, int64> assetNetUsed = 5;
+ */
+
+ public Builder putAllAssetNetUsed(
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public boolean containsAssetNetLimit(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAssetNetLimit().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAssetNetLimitMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public long getAssetNetLimitOrDefault(
+ java.lang.String key,
+ long defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public long getAssetNetLimitOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public Builder removeAssetNetLimit(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableAssetNetLimit().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+ public Builder putAssetNetLimit(
+ java.lang.String key,
+ long value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+
+ internalGetMutableAssetNetLimit().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, int64> assetNetLimit = 6;
+ */
+
+ public Builder putAllAssetNetLimit(
+ java.util.Mapint64 TotalNetLimit = 7;
+ */
+ public long getTotalNetLimit() {
+ return totalNetLimit_;
+ }
+ /**
+ * int64 TotalNetLimit = 7;
+ */
+ public Builder setTotalNetLimit(long value) {
+
+ totalNetLimit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 TotalNetLimit = 7;
+ */
+ public Builder clearTotalNetLimit() {
+
+ totalNetLimit_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long totalNetWeight_ ;
+ /**
+ * int64 TotalNetWeight = 8;
+ */
+ public long getTotalNetWeight() {
+ return totalNetWeight_;
+ }
+ /**
+ * int64 TotalNetWeight = 8;
+ */
+ public Builder setTotalNetWeight(long value) {
+
+ totalNetWeight_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 TotalNetWeight = 8;
+ */
+ public Builder clearTotalNetWeight() {
+
+ totalNetWeight_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.AccountNetMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.AccountNetMessage)
+ private static final org.tron.api.GrpcAPI.AccountNetMessage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.AccountNetMessage();
+ }
+
+ public static org.tron.api.GrpcAPI.AccountNetMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint64 freeNetUsed = 1;
+ */
+ long getFreeNetUsed();
+
+ /**
+ * int64 freeNetLimit = 2;
+ */
+ long getFreeNetLimit();
+
+ /**
+ * int64 NetUsed = 3;
+ */
+ long getNetUsed();
+
+ /**
+ * int64 NetLimit = 4;
+ */
+ long getNetLimit();
+
+ /**
+ * map<string, int64> assetNetUsed = 5;
+ */
+ int getAssetNetUsedCount();
+ /**
+ * map<string, int64> assetNetUsed = 5;
+ */
+ boolean containsAssetNetUsed(
+ java.lang.String key);
+ /**
+ * Use {@link #getAssetNetUsedMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+ java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ long getAssetNetUsedOrDefault(
+ java.lang.String key,
+ long defaultValue);
+ /**
+ * map<string, int64> assetNetUsed = 5;
+ */
+
+ long getAssetNetUsedOrThrow(
+ java.lang.String key);
+
+ /**
+ * map<string, int64> assetNetLimit = 6;
+ */
+ int getAssetNetLimitCount();
+ /**
+ * map<string, int64> assetNetLimit = 6;
+ */
+ boolean containsAssetNetLimit(
+ java.lang.String key);
+ /**
+ * Use {@link #getAssetNetLimitMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ long getAssetNetLimitOrDefault(
+ java.lang.String key,
+ long defaultValue);
+ /**
+ * map<string, int64> assetNetLimit = 6;
+ */
+
+ long getAssetNetLimitOrThrow(
+ java.lang.String key);
+
+ /**
+ * int64 TotalNetLimit = 7;
+ */
+ long getTotalNetLimit();
+
+ /**
+ * int64 TotalNetWeight = 8;
+ */
+ long getTotalNetWeight();
+
+ /**
+ * int64 EnergyUsed = 13;
+ */
+ long getEnergyUsed();
+
+ /**
+ * int64 EnergyLimit = 14;
+ */
+ long getEnergyLimit();
+
+ /**
+ * int64 TotalEnergyLimit = 15;
+ */
+ long getTotalEnergyLimit();
+
+ /**
+ * int64 TotalEnergyWeight = 16;
+ */
+ long getTotalEnergyWeight();
+
+ /**
+ * int64 storageUsed = 21;
+ */
+ long getStorageUsed();
+
+ /**
+ * int64 storageLimit = 22;
+ */
+ long getStorageLimit();
+ }
+ /**
+ * Protobuf type {@code protocol.AccountResourceMessage}
+ */
+ public static final class AccountResourceMessage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:protocol.AccountResourceMessage)
+ AccountResourceMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AccountResourceMessage.newBuilder() to construct.
+ private AccountResourceMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AccountResourceMessage() {
+ freeNetUsed_ = 0L;
+ freeNetLimit_ = 0L;
+ netUsed_ = 0L;
+ netLimit_ = 0L;
+ totalNetLimit_ = 0L;
+ totalNetWeight_ = 0L;
+ energyUsed_ = 0L;
+ energyLimit_ = 0L;
+ totalEnergyLimit_ = 0L;
+ totalEnergyWeight_ = 0L;
+ storageUsed_ = 0L;
+ storageLimit_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private AccountResourceMessage(
+ 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;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ freeNetUsed_ = input.readInt64();
+ break;
+ }
+ case 16: {
+
+ freeNetLimit_ = input.readInt64();
+ break;
+ }
+ case 24: {
+
+ netUsed_ = input.readInt64();
+ break;
+ }
+ case 32: {
+
+ netLimit_ = input.readInt64();
+ break;
+ }
+ case 42: {
+ if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
+ assetNetUsed_ = com.google.protobuf.MapField.newMapField(
+ AssetNetUsedDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000010;
+ }
+ com.google.protobuf.MapEntryint64 freeNetUsed = 1;
+ */
+ public long getFreeNetUsed() {
+ return freeNetUsed_;
+ }
+
+ public static final int FREENETLIMIT_FIELD_NUMBER = 2;
+ private long freeNetLimit_;
+ /**
+ * int64 freeNetLimit = 2;
+ */
+ public long getFreeNetLimit() {
+ return freeNetLimit_;
+ }
+
+ public static final int NETUSED_FIELD_NUMBER = 3;
+ private long netUsed_;
+ /**
+ * int64 NetUsed = 3;
+ */
+ public long getNetUsed() {
+ return netUsed_;
+ }
+
+ public static final int NETLIMIT_FIELD_NUMBER = 4;
+ private long netLimit_;
+ /**
+ * int64 NetLimit = 4;
+ */
+ public long getNetLimit() {
+ return netLimit_;
+ }
+
+ public static final int ASSETNETUSED_FIELD_NUMBER = 5;
+ private static final class AssetNetUsedDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.Long> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, int64> assetNetUsed = 5;
+ */
+
+ public boolean containsAssetNetUsed(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAssetNetUsed().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAssetNetUsedMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public long getAssetNetUsedOrDefault(
+ java.lang.String key,
+ long defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public long getAssetNetUsedOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public boolean containsAssetNetLimit(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAssetNetLimit().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAssetNetLimitMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public long getAssetNetLimitOrDefault(
+ java.lang.String key,
+ long defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public long getAssetNetLimitOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapint64 TotalNetLimit = 7;
+ */
+ public long getTotalNetLimit() {
+ return totalNetLimit_;
+ }
+
+ public static final int TOTALNETWEIGHT_FIELD_NUMBER = 8;
+ private long totalNetWeight_;
+ /**
+ * int64 TotalNetWeight = 8;
+ */
+ public long getTotalNetWeight() {
+ return totalNetWeight_;
+ }
+
+ public static final int ENERGYUSED_FIELD_NUMBER = 13;
+ private long energyUsed_;
+ /**
+ * int64 EnergyUsed = 13;
+ */
+ public long getEnergyUsed() {
+ return energyUsed_;
+ }
+
+ public static final int ENERGYLIMIT_FIELD_NUMBER = 14;
+ private long energyLimit_;
+ /**
+ * int64 EnergyLimit = 14;
+ */
+ public long getEnergyLimit() {
+ return energyLimit_;
+ }
+
+ public static final int TOTALENERGYLIMIT_FIELD_NUMBER = 15;
+ private long totalEnergyLimit_;
+ /**
+ * int64 TotalEnergyLimit = 15;
+ */
+ public long getTotalEnergyLimit() {
+ return totalEnergyLimit_;
+ }
+
+ public static final int TOTALENERGYWEIGHT_FIELD_NUMBER = 16;
+ private long totalEnergyWeight_;
+ /**
+ * int64 TotalEnergyWeight = 16;
+ */
+ public long getTotalEnergyWeight() {
+ return totalEnergyWeight_;
+ }
+
+ public static final int STORAGEUSED_FIELD_NUMBER = 21;
+ private long storageUsed_;
+ /**
+ * int64 storageUsed = 21;
+ */
+ public long getStorageUsed() {
+ return storageUsed_;
+ }
+
+ public static final int STORAGELIMIT_FIELD_NUMBER = 22;
+ private long storageLimit_;
+ /**
+ * int64 storageLimit = 22;
+ */
+ public long getStorageLimit() {
+ return storageLimit_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (freeNetUsed_ != 0L) {
+ output.writeInt64(1, freeNetUsed_);
+ }
+ if (freeNetLimit_ != 0L) {
+ output.writeInt64(2, freeNetLimit_);
+ }
+ if (netUsed_ != 0L) {
+ output.writeInt64(3, netUsed_);
+ }
+ if (netLimit_ != 0L) {
+ output.writeInt64(4, netLimit_);
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetAssetNetUsed(),
+ AssetNetUsedDefaultEntryHolder.defaultEntry,
+ 5);
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetAssetNetLimit(),
+ AssetNetLimitDefaultEntryHolder.defaultEntry,
+ 6);
+ if (totalNetLimit_ != 0L) {
+ output.writeInt64(7, totalNetLimit_);
+ }
+ if (totalNetWeight_ != 0L) {
+ output.writeInt64(8, totalNetWeight_);
+ }
+ if (energyUsed_ != 0L) {
+ output.writeInt64(13, energyUsed_);
+ }
+ if (energyLimit_ != 0L) {
+ output.writeInt64(14, energyLimit_);
+ }
+ if (totalEnergyLimit_ != 0L) {
+ output.writeInt64(15, totalEnergyLimit_);
+ }
+ if (totalEnergyWeight_ != 0L) {
+ output.writeInt64(16, totalEnergyWeight_);
+ }
+ if (storageUsed_ != 0L) {
+ output.writeInt64(21, storageUsed_);
+ }
+ if (storageLimit_ != 0L) {
+ output.writeInt64(22, storageLimit_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (freeNetUsed_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, freeNetUsed_);
+ }
+ if (freeNetLimit_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, freeNetLimit_);
+ }
+ if (netUsed_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(3, netUsed_);
+ }
+ if (netLimit_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(4, netLimit_);
+ }
+ for (java.util.Map.Entryint64 freeNetUsed = 1;
+ */
+ public long getFreeNetUsed() {
+ return freeNetUsed_;
+ }
+ /**
+ * int64 freeNetUsed = 1;
+ */
+ public Builder setFreeNetUsed(long value) {
+
+ freeNetUsed_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 freeNetUsed = 1;
+ */
+ public Builder clearFreeNetUsed() {
+
+ freeNetUsed_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long freeNetLimit_ ;
+ /**
+ * int64 freeNetLimit = 2;
+ */
+ public long getFreeNetLimit() {
+ return freeNetLimit_;
+ }
+ /**
+ * int64 freeNetLimit = 2;
+ */
+ public Builder setFreeNetLimit(long value) {
+
+ freeNetLimit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 freeNetLimit = 2;
+ */
+ public Builder clearFreeNetLimit() {
+
+ freeNetLimit_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long netUsed_ ;
+ /**
+ * int64 NetUsed = 3;
+ */
+ public long getNetUsed() {
+ return netUsed_;
+ }
+ /**
+ * int64 NetUsed = 3;
+ */
+ public Builder setNetUsed(long value) {
+
+ netUsed_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 NetUsed = 3;
+ */
+ public Builder clearNetUsed() {
+
+ netUsed_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long netLimit_ ;
+ /**
+ * int64 NetLimit = 4;
+ */
+ public long getNetLimit() {
+ return netLimit_;
+ }
+ /**
+ * int64 NetLimit = 4;
+ */
+ public Builder setNetLimit(long value) {
+
+ netLimit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 NetLimit = 4;
+ */
+ public Builder clearNetLimit() {
+
+ netLimit_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.Long> assetNetUsed_;
+ private com.google.protobuf.MapFieldmap<string, int64> assetNetUsed = 5;
+ */
+
+ public boolean containsAssetNetUsed(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAssetNetUsed().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAssetNetUsedMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public long getAssetNetUsedOrDefault(
+ java.lang.String key,
+ long defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public long getAssetNetUsedOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+
+ public Builder removeAssetNetUsed(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableAssetNetUsed().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, int64> assetNetUsed = 5;
+ */
+ public Builder putAssetNetUsed(
+ java.lang.String key,
+ long value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+
+ internalGetMutableAssetNetUsed().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, int64> assetNetUsed = 5;
+ */
+
+ public Builder putAllAssetNetUsed(
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public boolean containsAssetNetLimit(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAssetNetLimit().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAssetNetLimitMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public long getAssetNetLimitOrDefault(
+ java.lang.String key,
+ long defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public long getAssetNetLimitOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+
+ public Builder removeAssetNetLimit(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableAssetNetLimit().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, int64> assetNetLimit = 6;
+ */
+ public Builder putAssetNetLimit(
+ java.lang.String key,
+ long value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+
+ internalGetMutableAssetNetLimit().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, int64> assetNetLimit = 6;
+ */
+
+ public Builder putAllAssetNetLimit(
+ java.util.Mapint64 TotalNetLimit = 7;
+ */
+ public long getTotalNetLimit() {
+ return totalNetLimit_;
+ }
+ /**
+ * int64 TotalNetLimit = 7;
+ */
+ public Builder setTotalNetLimit(long value) {
+
+ totalNetLimit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 TotalNetLimit = 7;
+ */
+ public Builder clearTotalNetLimit() {
+
+ totalNetLimit_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long totalNetWeight_ ;
+ /**
+ * int64 TotalNetWeight = 8;
+ */
+ public long getTotalNetWeight() {
+ return totalNetWeight_;
+ }
+ /**
+ * int64 TotalNetWeight = 8;
+ */
+ public Builder setTotalNetWeight(long value) {
+
+ totalNetWeight_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 TotalNetWeight = 8;
+ */
+ public Builder clearTotalNetWeight() {
+
+ totalNetWeight_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long energyUsed_ ;
+ /**
+ * int64 EnergyUsed = 13;
+ */
+ public long getEnergyUsed() {
+ return energyUsed_;
+ }
+ /**
+ * int64 EnergyUsed = 13;
+ */
+ public Builder setEnergyUsed(long value) {
+
+ energyUsed_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 EnergyUsed = 13;
+ */
+ public Builder clearEnergyUsed() {
+
+ energyUsed_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long energyLimit_ ;
+ /**
+ * int64 EnergyLimit = 14;
+ */
+ public long getEnergyLimit() {
+ return energyLimit_;
+ }
+ /**
+ * int64 EnergyLimit = 14;
+ */
+ public Builder setEnergyLimit(long value) {
+
+ energyLimit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 EnergyLimit = 14;
+ */
+ public Builder clearEnergyLimit() {
+
+ energyLimit_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long totalEnergyLimit_ ;
+ /**
+ * int64 TotalEnergyLimit = 15;
+ */
+ public long getTotalEnergyLimit() {
+ return totalEnergyLimit_;
+ }
+ /**
+ * int64 TotalEnergyLimit = 15;
+ */
+ public Builder setTotalEnergyLimit(long value) {
+
+ totalEnergyLimit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 TotalEnergyLimit = 15;
+ */
+ public Builder clearTotalEnergyLimit() {
+
+ totalEnergyLimit_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long totalEnergyWeight_ ;
+ /**
+ * int64 TotalEnergyWeight = 16;
+ */
+ public long getTotalEnergyWeight() {
+ return totalEnergyWeight_;
+ }
+ /**
+ * int64 TotalEnergyWeight = 16;
+ */
+ public Builder setTotalEnergyWeight(long value) {
+
+ totalEnergyWeight_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 TotalEnergyWeight = 16;
+ */
+ public Builder clearTotalEnergyWeight() {
+
+ totalEnergyWeight_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long storageUsed_ ;
+ /**
+ * int64 storageUsed = 21;
+ */
+ public long getStorageUsed() {
+ return storageUsed_;
+ }
+ /**
+ * int64 storageUsed = 21;
+ */
+ public Builder setStorageUsed(long value) {
+
+ storageUsed_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 storageUsed = 21;
+ */
+ public Builder clearStorageUsed() {
+
+ storageUsed_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long storageLimit_ ;
+ /**
+ * int64 storageLimit = 22;
+ */
+ public long getStorageLimit() {
+ return storageLimit_;
+ }
+ /**
+ * int64 storageLimit = 22;
+ */
+ public Builder setStorageLimit(long value) {
+
+ storageLimit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 storageLimit = 22;
+ */
+ public Builder clearStorageLimit() {
+
+ storageLimit_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:protocol.AccountResourceMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:protocol.AccountResourceMessage)
+ private static final org.tron.api.GrpcAPI.AccountResourceMessage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.tron.api.GrpcAPI.AccountResourceMessage();
+ }
+
+ public static org.tron.api.GrpcAPI.AccountResourceMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser